XPath Tutorial (and How to Use them for Web Scraping)
Web Scraping with Franek
0:00 / 0:00
XPath Tutorial (and How to Use them for Web Scraping)
10 462 просмотра · 3 г. назад
Web Scraping with Franek
2,08 тыс. подписчиков
10 462 просмотра · 3 г. назад
📌 Master XPath for Web Scraping — Even with No-Code Tools! 📌
XPath is one of the most powerful tools for extracting data from web pages. Whether you're using Python, Selenium, or a No-Code tool like Octoparse, learning XPath is essential for precise and efficient web scraping.
🎁 Get your first 100 B2B leads for free: https://scrap.id/s/1xY
📥 Download Octoparse: https://bit.ly/3F3r3rl
💰 20% discount with the coupon: REP20
📩 Need a Web Scraping service? Contact me: fdufaurboidin@gmail.com
What You'll Learn in This Video
✅ Understanding HTML Structure for XPath
✅ The difference between Absolute & Short XPaths
✅ Writing custom XPaths for Web Scraping
✅ Using XPath Helper & Chrome DevTools
✅ How to debug and optimize XPaths for accuracy
✅ Implementing XPaths in Octoparse for automation
Timestamps
⏱ 01:39 — How to Read an HTML Document
⏱ 05:42 — The Different Kinds of XPaths
⏱ 08:40 — The XPath "Cheat Sheet"
⏱ 29:15 — Writing Your Own XPaths for Web Scraping
Essential XPaths from This Tutorial
🔹 Selecting an element by tag: //h1
🔹 Selecting an element by attribute: //div[@class="example"]
🔹 Using XPath contains: //a[contains(@href, "example")]
🔹 Selecting an element by text: //span[text()="Target Text"]
🔹 Getting an element's parent: //p/..
🔹 Extracting sibling elements: //h2/following-sibling::p
Tools Used in the Video
🛠 Octoparse – No-code Web Scraping tool
🛠 XPath Helper – Chrome extension for testing XPath queries
🛠 Google Chrome DevTools – Inspecting and extracting elements
👍 Like & Subscribe for more Web Scraping tutorials!
📩 Need help? Comment below or contact me for coaching & services.
#WebScraping #XPath #Automation #Octoparse #DataExtraction #NoCode