Skip to content

fschn90/example-scrapy-sql-pipeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrapy SQL pipeline example & stats collection

Shows how items scraped off an example news site are saved in a sql database via a scrapy pipeline.

Including some custom stats, as well as collection of potential sql errors. Pushing the entire stats of the spiders crawl into a sql database with the spiders closed method.

The stats are returned as a dictionary. Once thats converted into a json, it is then dumped as json into the databank using its json compatability.

The mariadb documentation is essential reading regarding the combination of sql and json. Other sql databases will have their own comparable functunality and documentation on the subject.

About

dumping scraped items into database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages