-
crawl data example by scrapy
-
https://medium.com/python-pandemonium/develop-your-first-web-crawler-in-python-scrapy-6b2ee4baf954
-
python v2.7
-
scrapy v1.5.0
-
crawl data by scrapy and save to db by sqlalchemy
-
copy and test XPath (using Chrome)
-
crawl pagiation data
-
crawl data from api
- init project:
scrapy startproject stack
- test XPath from Chrome console:
$x("//img")
- run project:
scrapy crawl stack
scrapy crawl stack -o items.json -t json
- generate spider:
scrapy genspider stack_crawler stackoverflow.com -t crawl