PitScrapy is a Python-based web scraper designed to efficiently collect a variety of data from web pages, including links, images, videos, scripts, and source code. Ideal for developers, researchers, and students looking to automate data extraction from websites.
- Features
- Installation
- Usage
- Why Choose PitScrapy?
- Contribution
- Support
- Legal and Ethical Considerations
- Extract various types of data:
- Links: All URLs from
<a>tags. - Images: URLs of images from
<img>tags. - Videos: URLs of videos from
<video>tags. - Scripts: Scripts with and without
srcattributes. - Source Code: View and optionally save the page's full HTML.
- Links: All URLs from
- Save extracted data into organized folders for easy access.
- Automatically handles timeouts and errors gracefully, with log output for debugging.
Before using PitScrapy, install the required libraries:
pip install requests beautifulsoup4 coloramaOr, install dependencies from the requirements.txt file:
pip install -r requirements.txtRun PitScrapy with the following command:
python pitscrapy.py -u <URL>- Extract all data types from a page and save to files:
python pitscrapy.py -u http://example.com
PitScrapy is straightforward and can be run with simple commands. Easily tailor it to collect specific data types as needed.
Ideal for repetitive data collection from multiple sites, helping automate research and development workflows.
Whether for educational use, data analysis, or content auditing, PitScrapy supports various needs with customizable output.
Contributions are welcome! Feel free to fork the project, submit pull requests, or report issues on GitHub.
For questions or troubleshooting, check the issues section on GitHub or start a new issue.
PitScrapy is a tool for collecting publicly available data. Users are responsible for ensuring their actions comply with the terms of service of each website and relevant laws. Use this tool ethically, avoid excessive requests, and respect site policies.