Cabu
Cabu is a simple microservice framework to remotely crawl websites. It’s built on Flask and Selenium, contains a virtual display wrapper and few methods.
Usage
@app.route('/gizmodo_last_articles_links')
def gizmodo_last_articles():
app.webdriver.get('http://www.gizmodo.com')
articles_links = [i.get_attribute('href') for i in app.webdriver.find_elements_by_css_selector('h1.headline>a')]
return jsonify({'articles': articles_links})
Installing
$ pip install cabu
Features
Selenium configuration out of the box
Flask wrapping
Crawling methods included
AWS S3 Export
FTP / FTPS
Cookies persistence
Link extractor
Proxy configuration
Headless optional for local debug
Docker pre-configured distributed environment
Database handler
Compatible with most Flask extensions (Flask-Admin, Flask-Mail, Flask-OAuth, …)
12 Factors compliance
(Likely to come soon)
CouchDB support
Couchbase support
Mobile drivers
SFTP
HtmlUnit web driver
Remote webdriver wrapper
Parallelization
Neural Network plugins
Testing
All tests were written using Docker services instead of Mocks. Alternative mocks will be added soon ;)
$ pip install -r requirements-dev.txt
$ py.test cabu/tests
Contributing
Please see the Contribute page.
Copyright
Cabu is an open source project by Théotime Lévèque.
Metadata
Release files for cabu 0.0.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 |
|---|---|---|---|---|
| cabu-0.0.2.tar.gz | 6.1 kB | Without provenance | Details for cabu-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cabu-0.0.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for cabu-0.0.2-py2.py3-none-any.whl |
Total release size: 14.2 kB
Release files / cabu-0.0.2.tar.gz
| Download URL | cabu-0.0.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56cfb267fa81fe8abb0be1c21f64f839b6ae2c85256943458e722316164db519
|
|
BLAKE2b-256 checksum How to use checksums |
53111a7f1fadf48c3713badee34d2a3a646d7436da37a109669e2a0ff4d15daf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / cabu-0.0.2-py2.py3-none-any.whl
| Download URL | cabu-0.0.2-py2.py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ffbcaa80afcf7f4eb7c930e7682889853668dd2b34fd89b30d9cfe15bed6f41a
|
|
BLAKE2b-256 checksum How to use checksums |
a2601b6942169220ee8cac4983870e4ab550d31a50732137e0edf045446bd5ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for cabu 0.0.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.