openpgp4fpr:DD11F92F1E44644183C06961D012FF557AFFF80A
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
| #!/usr/bin/env python3 | |
| # | |
| # This program will introspect on an OpenAlex API filter call and try to | |
| # determine what record in the cursored result set is causing a problem. | |
| # | |
| # ./openalexbug.py https://api.openalex.org/works?filter=author.id:https://openalex.org/A5003671931&cursor=&per-page=200 | |
| # problem record: https://openalex.org/W3200281942 | |
| # 121 records | |
| # |
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
| #!/usr/bin/env python3 | |
| # | |
| # This program demonstrates using the Tableau REST API to print out our embedding settings. | |
| # To run it you will need to create a Personal Access Token by: | |
| # | |
| # 1. visiting https://tableau-uat.stanford.edu/ | |
| # 2. clicking on your user name in the top right | |
| # 3. select "My Settings" | |
| # 4. scrolling to the "Personal Access Tokens" section |
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
| import dotenv | |
| from podbucket import oai | |
| from podbucket.oai import XML_NS | |
| dotenv.load_dotenv() | |
| for count, rec in enumerate(oai.list_records("503")): | |
| ds = rec.find(".//oai:header/oai:datestamp", namespaces=XML_NS).text | |
| print(ds, count) |
If you execute ./run.sh browsertrix-crawler will be started up to crawl https://www.trm.dk/nyheder and run a behaviour to fetch all the page results and then feed all the discovered URLs to the crawl queue.
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
| import requests | |
| import pandas | |
| url = "https://flotilla-orpin.vercel.app/api/vessel" | |
| df = pandas.DataFrame.from_records(requests.get(url).json()["vessels"]["232057367"]["positions"]) | |
| df.last_position_UTC = pandas.to_datetime(df.last_position_UTC) | |
| print(df) |
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
| docker run \ | |
| --publish 9037:9037 \ | |
| -v $PWD/crawls:/crawls/ \ | |
| webrecorder/browsertrix-crawler crawl \ | |
| --seeds https://www.womenonweb.org/af/ \ | |
| --seeds https://www.womenonweb.org/ar/ \ | |
| --seeds https://www.womenonweb.org/de/ \ | |
| --seeds https://www.womenonweb.org/en/ \ | |
| --seeds https://www.womenonweb.org/es/ \ | |
| --seeds https://www.womenonweb.org/fa/ \ |
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
| hostname | ip | provider | |
|---|---|---|---|
| research.noaa.gov | 3.171.38.80 | Amazon Technologies Inc. | |
| research.noaa.gov | 3.171.38.79 | Amazon Technologies Inc. | |
| research.noaa.gov | 3.171.38.59 | Amazon Technologies Inc. | |
| research.noaa.gov | 3.171.38.3 | Amazon Technologies Inc. | |
| epic.noaa.gov | 108.138.64.54 | Amazon.com, Inc. | |
| epic.noaa.gov | 108.138.64.32 | Amazon.com, Inc. | |
| epic.noaa.gov | 108.138.64.6 | Amazon.com, Inc. | |
| epic.noaa.gov | 108.138.64.49 | Amazon.com, Inc. | |
| adp.noaa.gov | 18.165.98.15 | Amazon Technologies Inc. |
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
| research.noaa.gov | |
| epic.noaa.gov | |
| adp.noaa.gov | |
| ci.noaa.gov | |
| oeab.noaa.gov | |
| orta.research.noaa.gov | |
| testbeds.noaa.gov | |
| qosap.research.noaa.gov | |
| oss.research.noaa.gov | |
| eeo.oar.noaa.gov |
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
| #!/usr/bin/env python3 | |
| import fileinput | |
| import re | |
| import subprocess | |
| from functools import cache | |
| @cache | |
| def ips(hostname): |
NewerOlder