Skip to content

Scrapman is a Python script to crawl a list of elements from a specified URL with a specified selector.

License

Notifications You must be signed in to change notification settings

anned20/scrapman

Repository files navigation

Scrapman

GitHub code size in bytes GitHub issues GitHub pull requests GitHub made-with-python Awesome Badges

Scrapman is a Python script to crawl a list of elements from a specified URL with a specified selector.

Getting started

Clone this repository:

git clone https://github.com/anned20/scrapman.git

Install the dependencies:

pip install -r requirements.txt

You are now ready to use Scrapman:

python scrapman.py --help

You should see something like:

Usage: scrapman.py [OPTIONS]

Options:
--debug / --no-debug           Debug mode
--url TEXT                     URL to crawl
--selector TEXT                Selector for the elements
--output-type [dict|json|csv]
--output-file TEXT             File to output the result into. Use "-" for
stdout
--help                         Show this message and exit.

Testing

To run the tests you use pytest

Execute them with pytest in the project directory

Built with

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Scrapman is a Python script to crawl a list of elements from a specified URL with a specified selector.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published