spiderbot
a spider bot, published as module spiderbot.
How to use?
Install
pip install spiderbot
install chrome browser and chromedriver, and put chromedrive binary into the PATH dir.
Config
Init the config_private.py, using config_private_sample.py as example, and update the value of XPATHS and DB_NAME arguments.
or,
When Generating an instance of SpiderBot, pass the value of xpaths and db_name arguments.
Run it
Init the database by pass the init=True to Generate an instance of SpiderBot. If successed, spiderbot.db was created.
from spiderbot import SpiderBot
bot = SpiderBot(skip_driver=True, init=True)
Then add users to scrawler. You can add users always as needed.
from spiderbot import SpiderBot
urls = ["https://example.com/user_a_homepage", "https://example.com/user_b_homepage"]
bot = SpiderBot()
bot.add_users(working_status=True, *urls)
At last, do the main job:
from spiderbot import SpiderBot
bot = SpiderBot()
bot.get_profiles()
bot.get_new_posturls()
bot.get_history_posturls(1, 9)
bot.get_posts()
bot.quit()
Code Format
isort .
black .
pylint spiderbot > pylint_spiderbot.log
Metadata
Release files for spiderbot 0.3.3
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 | |
|---|---|---|---|---|
| spiderbot-0.3.3.tar.gz | 21.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spiderbot-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 45.5 kB
Release files / spiderbot-0.3.3.tar.gz
| Download URL | spiderbot-0.3.3.tar.gz |
|---|---|
| Size | 21.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f51554ee800eacd5758032fe423985623fcb5079349cf2f577ad554fed6865a
|
|
BLAKE2b-256 checksum How to use checksums |
40a6384a982c9d5dd43582c4b30c26ab2ee1c46fea26da8d9daab23b53e361d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / spiderbot-0.3.3-py3-none-any.whl
| Download URL | spiderbot-0.3.3-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d349d55961f037b92417963725f535bc89a609472acc9c4fe1093e230139d81
|
|
BLAKE2b-256 checksum How to use checksums |
32b4bddc175e70321524be2569c9e54146d3ca10b83916fac71158de64fe9992
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for spiderbot 0.3.3
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.