{"id":29656374,"url":"https://github.com/yagna123k/scout","last_synced_at":"2026-05-17T15:08:51.656Z","repository":{"id":304558904,"uuid":"1019105921","full_name":"Yagna123k/scout","owner":"Yagna123k","description":"Smart concurrent web scraper with adaptive rate limiting \u0026 live CLI dashboard. Persists full HTML + text snippets into MongoDB for later NLP, indexing, or analysis. Achieves ~6x faster scraping with multi-threaded architecture vs single-threaded baseline.","archived":false,"fork":false,"pushed_at":"2025-07-13T20:55:55.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-24T22:34:08.946Z","etag":null,"topics":["adaptive-rate-limiting","beautifulsoup","concurrency","mongodb","multithreading","performance","python","systems-engineering","web-scraping"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yagna123k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-07-13T18:43:53.000Z","updated_at":"2025-07-13T20:55:58.000Z","dependencies_parsed_at":"2025-07-22T08:36:57.595Z","dependency_job_id":null,"html_url":"https://github.com/Yagna123k/scout","commit_stats":null,"previous_names":["yagna123k/scout"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Yagna123k/scout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yagna123k%2Fscout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yagna123k%2Fscout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yagna123k%2Fscout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yagna123k%2Fscout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yagna123k","download_url":"https://codeload.github.com/Yagna123k/scout/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yagna123k%2Fscout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33143276,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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":["adaptive-rate-limiting","beautifulsoup","concurrency","mongodb","multithreading","performance","python","systems-engineering","web-scraping"],"created_at":"2025-07-22T08:35:00.268Z","updated_at":"2026-05-17T15:08:51.651Z","avatar_url":"https://github.com/Yagna123k.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Scout Scrapper\n\n**Scout Scrapper** is a smart concurrent web scrapper that:\n\n- 🧵 Uses a **multi-threaded architecture** to achieve up to **6x faster scraping** over single-threaded baselines.\n- ⚖️ Features **adaptive rate limiting**, automatically slowing down under high latency or error rates to prevent HTTP 429 bans.\n- 🗂 Stores **full HTML content** and a short **text snippet** of each page in **MongoDB**, enabling later analysis, indexing, or NLP.\n- 📊 Provides a **real-time CLI dashboard** showing completed requests, failures, average latency, and dynamic sleep adjustments.\n\n---\n\n## 📸 Example run\n\n```\n\nDone: 20, Fail: 0, Avg Lat: 2.60s, Sleep: 0.90s ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:09\nScraped 20 URLs with 10 workers\nSuccess: 20, Failures: 0\nAvg latency: 2.58s\n\n````\n\n---\n\n## 🚀 Benchmark Results\n\n| Mode              | Total Time | Improvement |\n|-------------------|------------|-------------|\n| Single-threaded   | 56.46 s    | baseline    |\n| Multi-threaded    | 8.94 s     | ~6.3x faster|\n| Adaptive Throttle | 11.00 s    | ~5.1x faster|\n\nBenchmarked over 20 real news and media URLs with simulated delays.\n\n---\n\n## 🔍 What does it store?\n\nEach scraped page is saved in MongoDB like:\n\n```json\n{\n  \"url\": \"https://www.bbc.com\",\n  \"status\": 200,\n  \"latency\": 1.74,\n  \"timestamp\": \"2025-07-13T19:15:22.234Z\",\n  \"html\": \"\u003c!doctype html\u003e\u003chtml\u003e...\u003c/html\u003e\",\n  \"snippet\": \"BBC Homepage World Business Technology ...\"\n}\n````\n\n## 🛠️ Tech Stack\n\n* **Python** with `ThreadPoolExecutor` for concurrency\n* **Rich** for live dashboards\n* **BeautifulSoup** for text extraction\n* **MongoDB** (Atlas or local) for persistence\n* **Dotenv** for secure environment configs\n\n---\n\n## 🚀 How to run\n\n### 🔥 Install dependencies\n\n```bash\npip install -r requirements.txt\n```\n\n### 📂 Add your `.env`\n\n```\nMONGO_URI=mongodb+srv://username:password@cluster.mongodb.net/?retryWrites=true\n```\n\n### 🚀 Run it\n\n```bash\npython main.py 10 True\n```\n\n* `10` = number of concurrent workers\n* `True` = adaptive throttling on\n\n### ⚡ Benchmark modes\n\n```bash\npython benchmark.py\n```\n\nRuns single-threaded, multi-threaded, and adaptive, printing timing comparisons.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagna123k%2Fscout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyagna123k%2Fscout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagna123k%2Fscout/lists"}