scrab 0.0.6

Creator: bradpython12

Last updated:

0 purchases

scrab 0.0.6 Image
scrab 0.0.6 Images

Languages

Categories

Add to Cart

Description:

scrab 0.0.6

scrab - Fuzzy content scraper





Fast and easy to use content scraper for topic-centred web pages, e.g. blog posts, news and wikis.
The tool uses heuristics to extract main content and ignores surrounding noise. No processing rules. No XPath. No configuration.
Installing
pip install scrab

Usage
scrab https://blog.post

Store extracted content to a file:
scrab https://blog.post > content.txt

ToDo List

Support <main> tag
Add support for lists
Add support for scripts
Add support for markdown output format
Download and save referenced images
Extract and embed links

Development
# Lint with flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

# Check with mypy
mypy ./scrab
mypy ./tests

# Run tests
pytest

Publish to PyPI:
rm -rf dist/*
python setup.py sdist bdist_wheel
twine upload dist/*

License
This project is licensed under the MIT License.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.