別再苦惱,開始 Scraping!

Python 網頁爬蟲

Thomas Laetsch

Data Scientist, NYU

餵給機器的資料

Python 網頁爬蟲

Scraping 必備技能

  • 目標:用程式抓取網站
  • 怎麼做?我們決定使用 scrapy
  • 怎麼做?需要會用:
    • SelectorResponse 物件
    • 也可能要建立 Spider
  • 怎麼做?學會 XPath 或 CSS 定位語法
  • 怎麼做?理解 HTML 結構
Python 網頁爬蟲

你會哪些?

  • HTML 結構
  • XPath 與 CSS 定位語法
  • scrapy 中使用 SelectorResponse 物件
  • 設定 spider
  • 如何進行網頁爬取
Python 網頁爬蟲

EOT

Python 網頁爬蟲

Preparing Video For Download...