If I attempt accessing it with lynx, I get this generic error:
"Due to aggressive automated scraping of FederalRegister.gov and
eCFR.gov, programmatic access to these sites is limited to access to our extensive developer APIs."
I don't get this message on a normal javascript enabled browser. I
surmise it views queries from non-javascript browsers as a curl-like command.
On 02 Jul 2024, Daniel said the following...
If I attempt accessing it with lynx, I get this generic error:
"Due to aggressive automated scraping of FederalRegister.gov and eCFR.gov, programmatic access to these sites is limited to access to our extensive developer APIs."
I don't get this message on a normal javascript enabled browser. I surmise it views queries from non-javascript browsers as a curl-like command.
I don't know if you can change the user agent in lynx, but try and see if it works with curl.
e.g:
agent="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0"
curl -A "$agent" <url>
I've had to do this in the past when pulling information for weather, they stopped allowing curl, but simply changing the user agent allowed it to work.
| Sysop: | Sarah |
|---|---|
| Location: | Portland, Oregon |
| Users: | 170 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 233:24:40 |
| Calls: | 1,204 |
| Calls today: | 1,204 |
| Files: | 85,018 |
| U/L today: |
554 files (10,683M bytes) |
| D/L today: |
3,990 files (9,159M bytes) |
| Messages: | 66,319 |
| Posted today: | 55 |