Sitemap scraper for news article selection within a certain time range
Project description
About
This module provides the SitemapRange class and a tool to allow command-line usage sitemap_fetch.py.
The class SitemapRange is meant primarily as a generic building block for creating news aggregating applications where the datasources are spec-compliant news websites.
There are some fault-tolerance features included to deal with some inconsistencies in sitemaps.
Install
To install from pypi:
pip install --user sitemap-range-fetch
Usage
Fetching all news articles on cnn.com in the past 6 days, and format the result as JSON:
sitemap_fetch.py --site "https://cnn.com" --format json --daysago 6
More custom filtering can be done by using the SitemapRange class can be used
Details
This module is provided as is under MIT License. For extensions, customizations or business inquiries you can get in touch here.
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
Built Distribution
Hashes for sitemap-range-fetch-0.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7de94d780be5e30128a1d7c2ce8a2dd13152ca8c6bb13ad4d5415e00596f55c7 |
|
MD5 | 06b3e1833255cccdd8292ab125cbb351 |
|
BLAKE2b-256 | d2e4971755a85a5581125c2800904ff2c037298fe1fd92b3c2833a72f14835ca |
Hashes for sitemap_range_fetch-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7f9f4285cabff10c9f3e9040c90a2c7888dbbbccf6144c07ff4bb1e1f699c94 |
|
MD5 | b4f1c826f68fc0652f2d9c1e8e1cd842 |
|
BLAKE2b-256 | 53187bd406935574188f05c243916795d3d69ef1fd12cf21e38e550fc8af4c4c |