Attempts to gently scrape rpilocator for available Raspberry Pi 4s. By default runs continuously every 30 minutes. PLEASE be nice when interacting with the rpilocator site and do not be overly aggressive.
-n, --not-continuous: only run once, then exit
-i, --interval: interval, in seconds, of when it will check the website
-u, --usa-usa: only check the US region, but will include other Raspberry Pi types other than the model 4B (see errata)
- Spin out a thread to monitor keyboard for exit and proper teardown.
-
rpilocator.com renders rows after each "Support this site" message with an HTML error; specifically, it closes the table row then continues to create columns.
-
While the scraper could filter down arbitrarily by interacting with the JS filter field, I'm not sure it's worth building out the necessary JavaScript interaction engine for scraping purposes in this particular case.