r/scrapingtheweb • u/Ill-Acanthaceae5630 • 25d ago
I made a Python Library for scheduling recurring webscraping
I made LaptopScheduler, a Python scheduling library for Windows laptops.
It’s for recurring work that can wait until your laptop is available: reports, backups, data imports, and similar tasks. You can make sure your scraping runs consistently without renting out a webserver. You register your own Python functions, and it records their runs, handles retries, and applies your chosen catch-up policy after downtime.
Install: pip install laptopscheduler
2
u/Coding-Doctor-Omar 🕷 Scraping Wizard 25d ago
That's awesome!
1
u/Ill-Acanthaceae5630 23d ago
Thanks check out the github and tell me any issues if you end up using it
2
u/Shwetzer_Perpi 25d ago
how does it handle state if the machine sleeps mid-run? thats usually the hardest part with local scraping jobs since a half-finished run can leave duplicate data or dangling browser processes
1
u/Ill-Acanthaceae5630 24d ago
It prevents it from sleeping mid-job. Just put "keep_awake=True" and the laptop will wait until the job has finished before it goes to sleep. If the laptop is closed when a job is supposed to run/was interrupted it will retry when the laptop is back open
2
u/doubledweeb 24d ago
Does it handle the case where a previous scraping run is still running when the next scheduled time arrives?
2
u/Ill-Acanthaceae5630 23d ago
Yeah you can get it to either cancel it or have it run after it's finished running. I made it really customizable
1
24d ago
[removed] — view removed comment
2
u/Ill-Acanthaceae5630 23d ago
Thanks check out the github and tell me any issues if you end up using it
4
u/Hugh_Jass-10 25d ago
Nice, this is actually useful. Every time I’ve run scrapers off my laptop I come back to a pile of missed runs because the lid was closed half the day. What happens if it goes to sleep mid job though, does it retry that one or just treat it as done?