a web crawler to scrape documents from websites
Project description
Overview
The docscraper
package is a scrapy
spider for crawling a given set of
websites and dowloading all available documents with a given set of file
extensions. The package is intended to be called from a Python script.
Getting Started
You can get started by downloading the package with pip
:
$ pip install docscraper
Once the package is installed, you can use it with scrapy directly in your Python script to download files from websites as follows:
>>> import docscraper
>>> allowed_domains = ["books.toscrape.com"]
>>> start_urls = ["https://books.toscrape.com"]
>>> extensions = [".html", ".pdf", ".docx", ".doc", ".svg"]
>>> docscraper.crawl(allowed_domains, start_urls, extensions=extensions)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docscraper-0.1.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for docscraper-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dfc8678c5d680bc0d28d442222794cd8c0a34bf6779cf84c9d863d7bea9e4d5 |
|
MD5 | dbc45440e386589cf7c6db830414e1cd |
|
BLAKE2b-256 | 6984d36e3ca7a7c7f35f0280669196ef6ba92631e7ef0b4aa0872cd365509499 |