Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 954 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 954 Bytes

rpi4_locator

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.

Options

-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)

To Do

  • Spin out a thread to monitor keyboard for exit and proper teardown.

Errata

  • 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.