Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Urlwatch as a library #57

Closed
Immortalin opened this issue Mar 8, 2016 · 1 comment
Closed

Urlwatch as a library #57

Immortalin opened this issue Mar 8, 2016 · 1 comment

Comments

@Immortalin
Copy link

Can library support be added? E.g. call urlwatch and tasks programmatically as part of a django program etc.

@thp
Copy link
Owner

thp commented Jul 12, 2016

This already works with urlwatch 2, you can "import urlwatch" and then create the instances of the objects you need like the "urlwatch" does itself. Note that if you use it as part of a Django application, you might want to read the list of URLs from some database, etc.. - also note that urlwatch does blocking network calls, so you might not want to call it in the request handler for your web app, but using some task queue (eg. celery) instead.

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

No branches or pull requests

2 participants