Skip to main content

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)

Uploaded Source

Built Distribution

nrc_scrape-0.0.1-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page