Inspect a URL and estimate if it links to news story
Project description
storysniffer
Inspect a URL and estimate if it links to news story
- Issues: [https://github.com/pastpages/storysniffer/issues](<https://github.com/pastpages/storysniffer/issues)
- Packaging: https://pypi.python.org/pypi/storysniffer
- Testing: https://travis-ci.org/pastpages/storysniffer
Getting started
Install the package from the Python Package Index.
$ pip install storysniffer
The guess
method offers a hard yes or no estimate. But keep in mind that this package is still embryonic and don't take its answer too seriously.
import storysniffer
storysniffer.guess(
"http://www.washingtonpost.com/investigations/us-intelligence-mining-data-from-nine-us-internet-companies-in-broad-secret-program/2013/06/06/3a0c0da8-cebf-11e2-8845-d970ccb04497_story.html"
)
True
storysniffer.guess("http://www.washingtonpost.com/")
False
storysniffer.guess("https://twitter.com/bartongellman")
False
Credits
This is a joint project of PastPages.org, The Reynolds Journalism Institute and the University of Missouri.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
storysniffer-0.0.4.tar.gz
(24.4 kB
view hashes)
Built Distribution
Close
Hashes for storysniffer-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69fa4f8ebd153754ca3094357cf37500730cfdc616befd4c6df1c2785b80c35e |
|
MD5 | 659e046c9e55adc736fa44ca7d472eba |
|
BLAKE2b-256 | eb3b6782c96513e24ff447e78df67eb362d0c881f3a2357feec5ce256a23b58f |