Watchdogs to keep an eye on the world's change. Read more: https://github.com/ClericPy/watchdogs.
Project description
watchdogs
Watchdogs to keep an eye on the world's change.
Intro
- This is a web app based on fastapi, databases, uniparser, torequests.
- Smoothly deploy by pip:
pip install -U watchdogs;python3 -m watchdogs
- Simple to create new crawler with the Web UI, not like old ways to duplicate crawler code.
- All the crawlers run in the async environment.
- Almost all the buttons have the title attribute to describe the features in Web UI, which means doc lay on the UI.
Usage
-
pip install -U watchdogs
-
python -m watchdogs
-
Open with a browser: http://127.0.0.1:9901
Args
python -m watchdogs -- -h
- db_url:
sqlite / mysql / postgresql(not test) url, which databases support. Defaults to 'sqlite:///{HOME_PATH}/watchdogs/storage.sqlite'
- password:
init password, if null can be set on the first visit on web.
- mute_std_log:
remove stdout log for clean stream
- mute_file_log:
ignore file log located at {HOME_PATH}/watchdogs folder.
- md5_salt:
md5_salt for custom md5(password) / md5(rss_tag)
- config_dir:
config dir to save the logs and config files, if using sqlite include sqlite file. defaults to {HOME_PATH}/watchdogs
- use_default_cdn:
If Config.cdn_urls not set, and use_default_cdn is True, will use online js/css cdn from staticfile.org.
- **uvicorn_kwargs:
uvicorn startup kwargs, such as port, host. Which can be set like:
python -m watchdogs --port=9999 --host=127.0.0.1
Screenshots
- Welcome Page (Tasks Page).
Here you can see all the tasks meta, goto RSS / Mobile Lite Page, and do some operations to the tasks.
- New Task Page.
Here based on the latest uniparser web app, to create new rules and also tasks.
- Rules Page.
Do some operations for the rules.
- API page.
Based on fastapi
/docs
which is generated automatically.
- Mobile Page (Lite View).
For mobile phone to glimpse the latest result for the current 30 tasks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for watchdogs-1.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c8e4f7b06d9377fe3073149060f31704e1f72617f055a1f85285671709205e5 |
|
MD5 | a56d130b1d3c7a1e4580530ff52fb7f8 |
|
BLAKE2b-256 | 47d569cd82f936634dde8494f28c0e4c08fb3455c0eddde4fdae4ec60a4dfa7d |