( a simple python tool for recursively crawling web pages )
WebXcrawler is a Python tool for recursively crawling web pages and organizing retrieved content into files based on their types. It provides basic functionality to initiate a web crawl from a specified starting URL and allows customization of the maximum depth of the crawl.
- Crawls web pages recursively starting from a specified URL.
- Organizes crawled content into directories (
javascript_files,php_files,other_files). - Handles URLs without
httporhttpsprefix. - Validates crawl depth input (1-5).
Clone the repository:
git clone https://github.com/lovegraphy/WebXcrawler.git
cd WebXcrawlerInstall dependencies:
pip install requests beautifulsoup4Run the script
python WebXcrawler.pypython WebXcrawler.py
Enter the starting URL: https://example.com
Enter the maximum depth to crawl (1-5):
Enter the maximum depth to crawl: 3After crawling, the directory structure will look like this:
example.com/
│
├── javascript_files/
│ ├── script1.js
│ ├── script2.js
│ └── ...
│
├── php_files/
│ ├── file1.php
│ ├── file2.php
│ └── ...
│
└── other_files/
├── index.html
├── image.jpg
└── ...
