Python package to scrape NRC Event Reports.
Project description
Set of modules to scrape Event Reports from the NRC.gov website.
#Tests
pytest
#Usage
url = 'https://www.nrc.gov/reading-rm/doc-collections/event-status/event/2005/20050606en.html'
e = EventNotificationReport.from_url(url, headers)
url2 = 'https://www.nrc.gov/reading-rm/doc-collections/event-status/event/2017/20171129en.html'
f = EventNotificationReport.from_url(url2, headers)
url3 = 'https://www.nrc.gov/reading-rm/doc-collections/event-status/event/2005/20050607en.html'
g = EventNotificationReport.from_url(url3, headers)
er_urls = generate_nrc_event_report_urls(2004,2019,only_known=False)
from random import sample
urls = sample(list(er_urls.values()), 10)
# loop the urls and skip any 404s
fetch_enrs(urls)
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
nrc-scrape-0.0.1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for nrc_scrape-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c74f96490be00484af81ceac1fdcddcb1a76c80fde4a8c9ec240627b35f96ac8 |
|
MD5 | 63f60197a7a656f25fae9fd1bc41964d |
|
BLAKE2b-256 | 5eee5be5f76331e5f373b8458b5f60971c8f9672adde08ffecef644af63e119f |