This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| www.energy.gov | |
| gobbledegook | |
| apple.com | |
| www.gpo.gov | |
| httpstat.us/404 |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| "http://www.nrel.gov/esif", | |
| "http://www.nrel.gov/sustainable_nrel/rsf.html", | |
| "http://www.nrel.gov/esi/vehicle-grid-integration.html", | |
| "http://www.nrel.gov/esi/esi-news-201606.html", | |
| "http://www.nrel.gov/research/library.html", | |
| "http://www.nrel.gov/transportation/data_resources.html", | |
| "http://www.nrel.gov/security.html", | |
| "http://www.nrel.gov/buildings/sunrel.html", | |
| "http://www.nrel.gov/about/visiting-nrel.html", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default class CustomError extends Error { | |
| /** | |
| * CustomError is a base class that helps set up well considered custom Error | |
| * types for use in libraries. | |
| * @param {string} message An error message | |
| * @param {any} options | |
| * @param {string} options.code Sets the `code` property on the error. If not | |
| * set, it defaults to the class name. | |
| * @param {Function} options.trimStack In V8, trim everything from this | |
| * function and deeper off the stack trace in the error. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| www.epa.gov | 7087 | |
|---|---|---|
| energy.gov | 1569 | |
| www.globalchange.gov | 1209 | |
| science.energy.gov | 1182 | |
| www.nrel.gov | 849 | |
| www.ferc.gov | 638 | |
| www.eia.gov | 610 | |
| www.blm.gov | 588 | |
| earthdata.nasa.gov | 558 | |
| arpa-e.energy.gov | 541 |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| term,page_count | |
| information,5789 | |
| may,5767 | |
| energy,5099 | |
| national,4829 | |
| u,4404 | |
| page,4400 | |
| new,4376 | |
| office,4260 | |
| use,4057 |
We can't make this file beautiful and searchable because it's too large.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| term,page_count | |
| information,5789 | |
| may,5767 | |
| energy,5099 | |
| national,4829 | |
| u,4404 | |
| page,4400 | |
| new,4376 | |
| office,4260 | |
| use,4057 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Experiments in capturing combined output streams from subprocesses. | |
| # | |
| # It turns out it's kind of hard to get the interleaved results of stdout and | |
| # stderr in Python. However, in a lot of situations where Python is calling | |
| # out to other processes, you probably want to swallow the child process's | |
| # stderr when things to right and print it when things go wrong. Since some | |
| # programs may be outputting results on stdout and warnings and errors on | |
| # stderr, it makes sense that you'd want it all, and all in the order it was | |
| # printed when things go wrong. | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export WEB_MONITORING_DB_URL='https://api.monitoring.envirodatagov.org' | |
| export WEB_MONITORING_DB_EMAIL='YOUR EMAIL HERE' | |
| export WEB_MONITORING_DB_PASSWORD='YOUR PASSWORD HERE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| url | ||
|---|---|---|
| http://mdl-mom5.herokuapp.com/ | ||
| https://www.instagram.com/cleanetwork/ | ||
| https://sercc.com/ | ||
| https://serc.carleton.edu/ | ||
| https://cires.colorado.edu/ | ||
| http://geomag.colorado.edu/ | ||
| https://lasp.colorado.edu/ | ||
| http://www.cloudsat.cira.colostate.edu/ | ||
| http://rammb.cira.colostate.edu/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import timedelta | |
| import dateutil.parser | |
| from pathlib import Path | |
| import re | |
| START_LINE = re.compile(r'^\[([^\]]+)\] Starting Internet Archive Import') | |
| END_LINE = re.compile(r'^\s*Internet Archive import completed at (.+)') | |
| SUMMARY_START = re.compile(r'^\s*Loaded (\d+) CDX records:') | |
| SUMMARY_ITEM = re.compile(r'^\s*(\d+)\s([\s\w\-]+)\s\(') | |
| IMPORT_ERRORS = re.compile(r'^\s*Total:\s*(\d+)\serrors') |