Web app for Scrapyd cluster management, with support for Scrapy log analysis & visualization.
Project description
English | 简体中文
ScrapydWeb: Web app for Scrapyd cluster management, with support for Scrapy log analysis & visualization.
Scrapyd ScrapydWeb LogParser
Recommended Reading
How to efficiently manage your distributed web scraping projects
How to set up Scrapyd cluster on Heroku
Demo
Features
View contents
-
Scrapyd Cluster Management
- All Scrapyd JSON API Supported
- Group, filter and select any number of nodes
- Execute command on multinodes with just a few clicks
-
Scrapy Log Analysis
- Stats collection
- Progress visualization
- Logs categorization
-
Enhancements
- Auto packaging
- Integrated with LogParser
- Timer tasks
- :e-mail: Monitor & Alert
- Mobile UI
- Basic auth for web UI
Getting Started
View contents
Prerequisites
Make sure that Scrapyd has been installed and started on all of your hosts.
Note that for remote access, you have to manually set 'bind_address = 0.0.0.0' in the configuration file of Scrapyd and restart Scrapyd to make it visible externally.
Install
- Use pip:
pip install scrapydweb
Note that you may need to execute python -m pip install --upgrade pip
first in order to get the latest version of scrapydweb, or download the tar.gz file from https://pypi.org/project/scrapydweb/#files and get it installed via pip install scrapydweb-x.x.x.tar.gz
- Use git:
pip install --upgrade git+https://github.com/my8100/scrapydweb.git
Or:
git clone https://github.com/my8100/scrapydweb.git
cd scrapydweb
python setup.py install
Start
- Start ScrapydWeb via command
scrapydweb
. (a config file would be generated for customizing settings at the first startup.) - Visit http://127.0.0.1:5000 (It's recommended to use Google Chrome for a better experience.)
Browser Support
The latest version of Google Chrome, Firefox, and Safari.
Running the tests
View contents
$ git clone https://github.com/my8100/scrapydweb.git
$ cd scrapydweb
# To create isolated Python environments
$ pip install virtualenv
$ virtualenv venv/scrapydweb
# Or specify your Python interpreter: $ virtualenv -p /usr/local/bin/python3.7 venv/scrapydweb
$ source venv/scrapydweb/bin/activate
# Install dependent libraries
(scrapydweb) $ python setup.py install
(scrapydweb) $ pip install pytest
(scrapydweb) $ pip install coverage
# Make sure Scrapyd has been installed and started, then update the custom_settings item in tests/conftest.py
(scrapydweb) $ vi tests/conftest.py
(scrapydweb) $ curl http://127.0.0.1:6800
# '-x': stop on first failure
(scrapydweb) $ coverage run --source=scrapydweb -m pytest tests/test_a_factory.py -s -vv -x
(scrapydweb) $ coverage run --source=scrapydweb -m pytest tests -s -vv --disable-warnings
(scrapydweb) $ coverage report
# To create an HTML report, check out htmlcov/index.html
(scrapydweb) $ coverage html
Built With
Changelog
Detailed changes for each release are documented in the HISTORY.md.
Author
my8100 |
---|
Contributors
Kaisla |
---|
License
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
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 Distribution
Built Distribution
File details
Details for the file scrapydweb-1.5.1.tar.gz
.
File metadata
- Download URL: scrapydweb-1.5.1.tar.gz
- Upload date:
- Size: 682.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73a2d80f3acb9a7794aea5b91dd863fecfe983a4fedc548e77f3123810b3cf20 |
|
MD5 | 5e48abcb3c03c02d73e542c162e2580a |
|
BLAKE2b-256 | 07cfd4e29a65a2645f72b0ae12170abc64a02a2abe5e282ad881c1301a03ab5c |
File details
Details for the file scrapydweb-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: scrapydweb-1.5.1-py3-none-any.whl
- Upload date:
- Size: 700.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75fac68b52e8a1ed38ac7edf514050354a925e86df65d9fcfe46d27029aa8fef |
|
MD5 | 6f99a2a93ffb056113396d36960171ec |
|
BLAKE2b-256 | 0ea4bad8a657b0aa899333828f148f6979c850e68430fe7028b1100f5906b182 |