{"id":18223963,"url":"https://github.com/mohammadrezaamani/squirrel","last_synced_at":"2026-02-09T11:01:56.301Z","repository":{"id":260881921,"uuid":"882616472","full_name":"MohammadrezaAmani/squirrel","owner":"MohammadrezaAmani","description":"Squirrel is a web crawler designed to collect all pages from Iranian websites, enabling you to download and store web page content in a structured format.","archived":false,"fork":false,"pushed_at":"2024-11-03T10:14:30.000Z","size":547,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T19:41:49.712Z","etag":null,"topics":["crawler","iran","python"],"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/MohammadrezaAmani.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":"2024-11-03T09:45:59.000Z","updated_at":"2025-02-17T14:25:04.000Z","dependencies_parsed_at":"2024-11-05T14:00:14.939Z","dependency_job_id":null,"html_url":"https://github.com/MohammadrezaAmani/squirrel","commit_stats":null,"previous_names":["mohammadrezaamani/squirrel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MohammadrezaAmani/squirrel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2Fsquirrel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2Fsquirrel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2Fsquirrel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2Fsquirrel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MohammadrezaAmani","download_url":"https://codeload.github.com/MohammadrezaAmani/squirrel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MohammadrezaAmani%2Fsquirrel/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268031092,"owners_count":24184442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["crawler","iran","python"],"created_at":"2024-11-04T01:05:37.949Z","updated_at":"2026-02-09T11:01:51.256Z","avatar_url":"https://github.com/MohammadrezaAmani.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐿️ Squirrel: Iran Web Crawler\n\nSquirrel is a web crawler that allows you to collect all pages from Iranian websites. Using this crawler, you can download the content of web pages and store it in a specified structure.\n\n## Features\n\n- Support for concurrent requests to optimize crawling speed\n- Ability to set batch size for processing URLs\n- Test mode to verify URLs without downloading content\n- Content storage in a specified path\n\n## Requirements\n\n- Python 3.11 or higher\n- Libraries: `aiohttp` and `aiofiles`\n\n## Installation\n\nTo install this squirrel, simply use pip:\n\n```bash\npip install aiohttp aiofiles\n```\n\n## Usage\n\nTo run the crawler, use the following command:\n\n```bash\npython -m squirrel [OPTIONS]\n```\n\n### Command-line Parameters\n\n- `--max-concurrent`: Maximum number of concurrent requests (default: 50)\n- `--batch-size`: Number of URLs processed in each batch (default: 10)\n- `--skip-test`: Skip Running the crawler in test mode (default: disabled)\n- `--base-path`: Storage path for downloaded content (default: `./data`)\n\n### Example\n\nTo run the crawler with 20 concurrent requests and save data in the `my_data` directory, use the following command:\n\n```bash\npython -m squirrel --max-concurrent 20 --batch-size 5 --skip-test --base-path \"./my_data\"\n```\n\nor\n\n```python\nfrom asyncio import run\n\nfrom squirrel import main\n\nif __name__ == \"__main__\":\n    run(\n        main(\n            max_concurrent=50,\n            batch_size=5,\n            skip_test=False,\n            base_path=\"./data\",\n        )\n    )\n```\n\n## Contributing\n\nIf you would like to contribute to the development of this project, please create an issue or submit a pull request. All feedback and suggestions are welcome!\n\n## License\n\nThis project is licensed under the MIT License. For more information, please refer to the LICENSE file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadrezaamani%2Fsquirrel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadrezaamani%2Fsquirrel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadrezaamani%2Fsquirrel/lists"}