{"id":29201947,"url":"https://github.com/bdr-pro/examtopics-scraper","last_synced_at":"2026-02-05T15:31:37.748Z","repository":{"id":294621831,"uuid":"987558976","full_name":"BDR-Pro/ExamTopics-Scraper","owner":"BDR-Pro","description":"ExamTopics Scraper \u0026 PDF Generator","archived":false,"fork":false,"pushed_at":"2025-05-21T10:52:02.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T12:49:49.434Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BDR-Pro.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,"zenodo":null}},"created_at":"2025-05-21T08:51:27.000Z","updated_at":"2025-05-21T10:52:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"32bda07b-043d-42e8-b650-8e34f429205a","html_url":"https://github.com/BDR-Pro/ExamTopics-Scraper","commit_stats":null,"previous_names":["bdr-pro/examtopics-scraper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BDR-Pro/ExamTopics-Scraper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FExamTopics-Scraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FExamTopics-Scraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FExamTopics-Scraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FExamTopics-Scraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BDR-Pro","download_url":"https://codeload.github.com/BDR-Pro/ExamTopics-Scraper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BDR-Pro%2FExamTopics-Scraper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29124801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T14:05:12.718Z","status":"ssl_error","status_checked_at":"2026-02-05T14:03:53.078Z","response_time":65,"last_error":"SSL_read: 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":[],"created_at":"2025-07-02T12:36:32.824Z","updated_at":"2026-02-05T15:31:37.742Z","avatar_url":"https://github.com/BDR-Pro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖼️ ExamTopics Scraper \u0026 PDF Generator\n\nThis script automates the process of:\n\n1. Navigating through the [ExamTopics ITILFND v4](https://www.examtopics.com/exams/itil/itilfnd-v4/view/) exam page.\n2. Clicking the **Reveal** button on each question.\n3. Capturing full-page screenshots.\n4. Moving to the **Next** page until all questions are captured.\n5. Saving all screenshots to a folder.\n6. Converting the screenshots into a single PDF file.\n\n---\n\n## 📦 Dependencies\n\n* Python 3.7+\n* [Playwright](https://playwright.dev/python/)\n* [Pillow (PIL)](https://pypi.org/project/Pillow/)\n\n### Install Requirements\n\n```bash\npip install playwright pillow\nplaywright install chromium\n```\n\n---\n\n## 🚀 Usage\n\n```bash\npython main.py\n```\n\n\u003e Optional: Modify `skip_pages` inside `main.py` to start from a later page (e.g., page 3).\n\n---\n\n## 🧠 Features\n\n* Automatically clicks all \"Reveal\" buttons before screenshotting.\n* Navigates through paginated content using the \"Next\" button.\n* Handles potential captchas by pausing and waiting for manual intervention.\n* Randomized delay to reduce bot detection.\n* Outputs all screenshots in the `examtopics_screenshots` folder.\n* Converts images to `output.pdf` using `turn_it_into_pdf.py`.\n\n---\n\n## 🛠️ File Structure\n\n* `main.py` — The core automation script using Playwright.\n* `turn_it_into_pdf.py` — Helper module to convert a folder of images into a single PDF.\n* `examtopics_screenshots/` — Folder where screenshots are saved (auto-created).\n\n---\n\n## 🔐 Captcha Handling\n\nIf a CAPTCHA appears, the script will wait **30 seconds** for manual resolution. You’ll see:\n\n```bash\nCaptcha detected, please solve it manually.\n```\n\n---\n\n## 📝 Notes\n\n* The script uses **Chrome** with `--disable-blink-features=AutomationControlled` to reduce bot detection.\n* Make sure you're using it responsibly and ethically, especially considering the source site's terms of service.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdr-pro%2Fexamtopics-scraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbdr-pro%2Fexamtopics-scraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbdr-pro%2Fexamtopics-scraper/lists"}