{"id":36844644,"url":"https://github.com/biraj21/web-wanderer","last_synced_at":"2026-01-12T14:31:48.289Z","repository":{"id":184611244,"uuid":"672195707","full_name":"biraj21/web-wanderer","owner":"biraj21","description":"A multi-threaded web crawler written in Python, utilizing ThreadPoolExecutor and Playwright to efficiently crawl dynamically rendered web pages and download them.","archived":false,"fork":false,"pushed_at":"2024-11-30T15:18:20.000Z","size":212,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-30T16:24:45.450Z","etag":null,"topics":["data-extraction","multithreading","python","web-crawler","webcrawler"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/biraj21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-29T08:37:10.000Z","updated_at":"2024-11-30T15:18:23.000Z","dependencies_parsed_at":"2024-04-30T13:12:06.672Z","dependency_job_id":null,"html_url":"https://github.com/biraj21/web-wanderer","commit_stats":null,"previous_names":["biraj21/web-wanderer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/biraj21/web-wanderer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biraj21%2Fweb-wanderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biraj21%2Fweb-wanderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biraj21%2Fweb-wanderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biraj21%2Fweb-wanderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biraj21","download_url":"https://codeload.github.com/biraj21/web-wanderer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biraj21%2Fweb-wanderer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-extraction","multithreading","python","web-crawler","webcrawler"],"created_at":"2026-01-12T14:31:48.197Z","updated_at":"2026-01-12T14:31:48.256Z","avatar_url":"https://github.com/biraj21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Web Wanderer\n\nWeb Wanderer is a multi-threaded web crawler written in Python, utilizing `concurrent.futures.ThreadPoolExecutor` and Playwright to efficiently crawl and download web pages. This web crawler is designed to handle dynamically rendered websites, making it capable of extracting content from modern web applications.\n\n![Screenshot](images/ss.png)\n\n## How to Use\n\nFirst install the [required dependencies](#dependencies).\n\nThen you can use it as either a cli tool or as a library.\n\n### 1. As command-line interface\n\n```bash\npython src/main.py https://python.langchain.com/en/latest/\n```\n\n### 2. As a Library\n\nTo start crawling, simply instantiate the `MultithreadedCrawler` class with the seed URL and optional parameters:\n\n```python\nfrom crawlers import MultithreadedCrawler\n\ncrawler = MultithreadedCrawler(\"https://python.langchain.com/en/latest/\")\ncrawler.start()\n```\n\nThe `MultithreadedCrawler` class is initialized with the following parameters:\n\n- `seed_url` (str): The URL from which the crawling process will begin.\n- `output_dir` (str): The directory where the downloaded pages will be stored. By default, the pages are saved in a folder named after the base URL of the seed. Defaults to `web-wanderer/downloads/\u003cbase-url-of-seed\u003e\"`\n- `num_threads` (int): The number of threads the crawler should use. This determines the level of concurrency during the crawling process. Defaults to `8`.\n- `done_callback` (Callable | None): A callback function that will be called after crawling is successfully done.\n\n## Features\n\n- **Multi-Threaded:** Web Wanderer employs multi-threading using the `ThreadPoolExecutor`, which allows for concurrent fetching of web pages, making the crawling process faster and more efficient.\n\n- **Dynamic Website Support:** The integration of Playwright enables Web Wanderer to handle dynamically rendered websites, extracting content from modern web applications that rely on JavaScript for rendering.\n\n- **Queue-Based URL Management:** URLs to be crawled are managed using a shared queue, ensuring efficient and organized distribution of tasks among threads.\n\n- **Done Callback:** You have the option to set a callback function that will be executed after the crawling process is successfully completed, allowing you to perform specific actions or analyze the results.\n\n## Dependencies\n\nWeb Wanderer relies on the following libraries:\n\n- `playwright`: To handle dynamically rendered websites and interact with web pages.\n\n## Getting Started with Development\n\n_Note: Have only tested this project with **Python 3.11.4**._\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/biraj21/web-wanderer.git\ncd web-wanderer\n```\n\n2. Install and setup [pipenv](https://pypi.org/project/pipenv/)\n\n3. Active virtual environment\n\n```bash\npipenv shell\n```\n\n4. Install dependencies\n\n```bash\npipenv install\n```\n\n5. Install headless browser with `playwright`\n\n```bash\nplaywright install\n```\n\n## Planned things\n\n- Replace `pipenv` with `poetry` cuz `pipenv` is shit\n- `asyncio` crawler\n- `trio` crawler (cuz why not)\n- Allow choosing between HTML engine (requests/aiohttp) \u0026 JavaScript engine (Playwright)\n\nWill do it when I get time.\n\nList created on 30th Nov, 2024\n\nHappy web crawling with Web Wanderer! 🕸️🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiraj21%2Fweb-wanderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiraj21%2Fweb-wanderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiraj21%2Fweb-wanderer/lists"}