Skip to content

Add schedule feature and tests#655

Open
schmorrison wants to merge 1 commit intogocolly:masterfrom
schmorrison:schedule-feature-pr
Open

Add schedule feature and tests#655
schmorrison wants to merge 1 commit intogocolly:masterfrom
schmorrison:schedule-feature-pr

Conversation

@schmorrison
Copy link
Copy Markdown
Contributor

@schmorrison schmorrison commented Oct 17, 2021

Thanks for maintaining this package!

Simple scheduling mechanism to periodically start a Collector's scraping routine. The entire schedule group can be cancelled via StopSchedules or cancelling the Collector.Context. When a stop is executed, all currently running schedules will finish naturally (not at once). Currently, the Collector's registered callbacks are not aware of the scheduleContext cancellation via StopSchedules.

I'm sure you will like me to tweak the implementation here.

@WGH-
Copy link
Copy Markdown
Collaborator

WGH- commented Jan 28, 2022

This uses public Colly API only, you could do it from your own package just fine, and I'm not yet convinced this is frequent enough use case to be integrated into the main code base.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants