Scraper Bot
This is a bot thought to do periodical scraping of ads from commercial websites.
Found a new ad the bot will send it to you exploiting Apprise channels
Deploy
Pypi
The relative package is available on Pypi
pip install scraper-bot
The package heavily relays on playwright package, so before start to use the bot you have to install a playwright browser
playwright install --with-deps firefox
You can found further information in the playwright documentation
(n.b. the bot are not limited to use firefox only)
The scraper-bot package provide the following command to run the bot
scraper-bot
Container
The CI builds the container for each version and it puts it on the public GitHub registry
ghcr.io/robertobochet/scraper-bot
docker compose
- Create a telegram bot and retrieve its token
- Download
config.example.yamland rename it toconfig.yaml - Change the configuration follow the guidelines
- Download
docker-compose.yaml - Start the scraper with
docker-composedocker-compose up - Wait that the bot does its work!
Kubernetes (Helm chart)
For the deploy of the Scraper Bot is also available a helm chart
You can found the source code in the repo scraper-bot-chart
Helm chart package is available in the github OCI registry
oci://ghcr.io/robertobochet/scraper-bot-chart
You can use it to directly deploy on your kubernetes cluster
- Retrieve the default values file
helm show values oci://ghcr.io/robertobochet/scraper-bot-chart > values.yaml
- Customize the
values.yaml - Install the scaper bot
helm install oci://ghcr.io/robertobochet/scraper-bot-chart scraper-bot -f values.yaml
Configuration
By default the bot looks for a configuration file in the following path ./config.y(a)ml and /etc/scaraper-bot/config.y(a)ml. You cna override this behavior passing via command line the --config argument followed by the config file path
scraper-bot --config /path/to/scraper-bot-config.yaml
The configuration file has to satisfy the pydantic model which you can find in scraper_bot.settings.
Furthermore you can get the config json schema from command line with --config-schema argument
scraper-bot --config-schema
You can also find a configuration example in config.example.yaml.
Metadata
Release files for scraper-bot 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| scraper_bot-1.3.2.tar.gz | 25.7 kB | Without provenance | Details for scraper_bot-1.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| scraper_bot-1.3.2-py3-none-any.whl | Python 3 | none | any | Details for scraper_bot-1.3.2-py3-none-any.whl |
Total release size: 58.7 kB
Release files / scraper_bot-1.3.2.tar.gz
| Download URL | scraper_bot-1.3.2.tar.gz |
|---|---|
| Size | 25.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92571ae419387d85f5c77a5e574bc3db674ab7e5fe1008ccb86ed3511a3a314d
|
|
BLAKE2b-256 checksum How to use checksums |
f53ad505e2b1017780a9b8be63d601216fa3713762b35454ac1067903d27acc9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.7
|
Release files / scraper_bot-1.3.2-py3-none-any.whl
| Download URL | scraper_bot-1.3.2-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
91d662ed15effd4e64124bbc4619e5cd6b9532b9346e6e6bdab2d6d46cb2bbe4
|
|
BLAKE2b-256 checksum How to use checksums |
0fe43548d8d05dcb1afb5bbf25401b53a60e2af4a55745b494ba387e0615038e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.0 CPython/3.12.7
|
Security for scraper-bot 1.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.