Skip to content

Scrapy crawler example that scrapes a site, and dumps raw html as well as parsed json to the disk.

License

Notifications You must be signed in to change notification settings

jasonstubblefield/Scrapy_site_to_disk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Site to Disk

This is a scrapy spider that crawls site(s) and stores them to the disk.

Each html page is parsed and stored as a json file.

The html is stored as a html file.

Prerequisites

Make sure you have scrapy installed.

Make sure you have Newspaper3k installed.

Configuration

Change the seed url and allowed hostnames in the runspider.py file.

Usage

Run the spider ...

scrapy runspider myspider.py

Output

The HTML will be stored in a html folder.

The JSON will be stored in a json folder

Questions

if you like this script and/or want to ask questions check out my personal site at https://jasonstubblefield.github.io

About

Scrapy crawler example that scrapes a site, and dumps raw html as well as parsed json to the disk.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages