Skip to content

starfall-9000/crawl-stackoverflow-scrapy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRAWL-STACKOVERFLOW

learning

  • crawl data by scrapy and save to db by sqlalchemy

  • copy and test XPath (using Chrome)

  • crawl pagiation data

  • crawl data from api

command

  • 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

About

example for training crawl data by scrapy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages