Commit Graph

28 Commits

Author SHA1 Message Date
Ross 3ea85d360c . 2025-10-29 21:11:24 +00:00
Ross f8775d1f7e . 2025-10-21 21:56:33 +01:00
Ross 90b48f6dc5 . 2025-10-21 09:31:05 +01:00
Ross 1c01221a90 feat: Implement migration script for renaming timestamped files to content-hash based names with deduplication options 2025-10-20 21:36:05 +01:00
Ross 9c86b32c3b . 2025-10-20 21:15:33 +01:00
Ross 1e36a4957c . 2025-10-20 08:40:33 +01:00
Ross 81dec28757 . 2025-10-20 08:01:33 +01:00
Ross fe41f1d02c feat: Improve file naming for captured images by removing timestamps for stable naming 2025-10-20 07:58:21 +01:00
Ross f1bfdd8e7a 1 2025-10-19 17:54:25 +01:00
Ross 66512aa439 Enhance document processing in scrapers
- Updated pediatric multiple sclerosis article reference ID.
- Improved document_to_markdown.py to handle differential diagnoses, tables, anatomy, and cases more effectively.
- Added logging for cached entries of DDX, Tables, Anatomy, and Cases.
- Adjusted file pattern matching to process all JSON files by default.
- Fixed document ID extraction logic for various data types.
2025-10-18 15:41:33 +01:00
Ross 5983ca3252 . 2025-10-18 15:20:26 +01:00
Ross 96d0de8e1a . 2025-10-18 13:27:30 +01:00
Ross fbf4ab926b feat: Enhance document processing by caching image groups and document summaries 2025-10-18 13:13:42 +01:00
Ross 90ac197cbe feat: Cache and manage image group metadata for enhanced document processing 2025-10-18 09:20:57 +01:00
Ross 2585d69fbe feat: Implement image candidate discovery and association in document processing 2025-10-18 08:44:33 +01:00
Ross 9aea602295 feat: Add new articles on Allergic Bronchopulmonary Aspergillosis, Finger-in-Glove Sign, and Tracheal Dilatation; update content index and document conversion script 2025-10-18 07:51:33 +01:00
Ross 55716a16c5 Add comprehensive documentation for adrenal conditions
- Created detailed articles for Adrenal Adenoma, Adrenal Cyst, Adrenal Myelolipoma, and general Adrenal anatomy.
- Included key facts, imaging findings, differential diagnoses, pathology, clinical issues, and diagnostic checklists for each condition.
- Enhanced understanding of adrenal tumors and their characteristics through structured documentation.
2025-10-17 22:27:59 +01:00
Ross 2f8df5f820 Add comprehensive articles on Vascular Dementia and Wallerian Degeneration
- Created a detailed article for Vascular Dementia covering key facts, terminology, imaging findings, differential diagnoses, pathology, clinical issues, and diagnostic checklist.
- Developed an extensive article on Wallerian Degeneration including key facts, terminology, imaging features, differential diagnoses, pathology, clinical issues, and diagnostic checklist.
2025-10-17 22:11:27 +01:00
Ross efbfd301f0 Add new markdown files for various documents and implement document conversion script
- Created markdown files for CDC Diagnostic Criteria for Creutzfeldt-Jakob Disease and multiple media documents.
- Added a script to convert JSON documents containing HTML into markdown format.
- Implemented functions to extract titles and HTML content from JSON files.
- Enhanced markdown generation with support for various HTML elements including tables, lists, and images.
- Included error handling and logging for file processing.
2025-10-14 21:03:40 +01:00
Ross abbd4e24f2 feat: Enhance response capture logic to always include images and known document endpoints 2025-10-14 19:52:25 +01:00
Ross adc21f5795 feat: Implement passive XHR/fetch capture using Playwright
- Added `capture_passive_playwright.py` for synchronous passive capture of XHR/fetch responses.
- Added `capture_passive_playwright_async.py` for asynchronous passive capture using Playwright's async API.
- Introduced `save_page_snapshots.py` to save full page HTML snapshots with deduplication.
- Removed obsolete CSRF token capture JSON file.
2025-10-14 19:48:01 +01:00
Ross 683dd06643 Add automatic login functionality with optional credentials and selectors 2025-10-14 17:46:03 +01:00
Ross e3d081cbff Add scripts for capturing network responses and extracting document content
- Implement capture_with_cdp.py to capture all network response bodies using Chrome DevTools Protocol.
- Create extract_sections.py to extract sections from STATdx snapshot HTML files into JSON Lines.
- Add unpack_document_content.py to extract `documentHtml` from captured JSON bodies and save as HTML files.
- Update .gitignore to include playwright_profile.
2025-10-14 17:44:20 +01:00
Ross 496d7a6523 Update domain argument default value and enhance XHR capture to save HTML responses as files 2025-10-14 14:23:47 +01:00
Ross 26f900a406 Enhance capture functionality to allow saving images regardless of domain filter when image capture is enabled 2025-10-14 14:17:02 +01:00
Ross 448db2aaf9 Refactor logging to use Loguru in Playwright scripts for improved logging capabilities 2025-10-14 14:09:19 +01:00
Ross fd5922b3a6 Update .gitignore and requirements; enhance logging in Playwright scraper 2025-10-14 13:56:47 +01:00
Ross 491fca2f42 Add Playwright-based scraping and login scripts for STATdx
- Implemented `statdx_play_chrome.py` to launch Chrome via Playwright, allowing for headful browsing and capturing XHR requests.
- Created `statdx_playwright.py` for headless scraping of the STATdx application, including automatic login and HTML saving.
- Developed `statdx_requests.py` for form-based login and scraping, providing a fallback for sites using traditional authentication.
- Added example HTML output from Playwright scraping to `topics_playwright.html`.
- Captured XHR request data in JSON format for analysis in `xhr_captured/app.statdx.com_csrf_token_8000d0ed_20251014T124122Z.json`.
2025-10-14 13:46:39 +01:00