Skip to content

Improve scrapers content extraction#19

Merged
AJaccP merged 13 commits into
mainfrom
improve-scrapers-content-extraction
Jul 6, 2026
Merged

Improve scrapers content extraction#19
AJaccP merged 13 commits into
mainfrom
improve-scrapers-content-extraction

Conversation

@mikesiez

Copy link
Copy Markdown
Contributor

Implemented scraping with bs4 instead of trifilatura.
Reduced unnecessary elements being scraped, and fixed necessary elements being ignored / improperly parsed such as links & accordions.
Added offline test files in tests/ingestion/fixtures and a script to run assertions at tests/ingestion/offline_scraper.py
Updated dependency list to include bs4 via uv add beautifulsoup4

Linked to issue #6

mikesiez and others added 3 commits June 14, 2026 20:12
@mikesiez mikesiez linked an issue Jun 20, 2026 that may be closed by this pull request
@mikesiez mikesiez requested a review from AJaccP June 20, 2026 15:37
Comment thread pyproject.toml Outdated
Comment thread tests/ingestion/scraper_offline.py Outdated
Comment thread tests/ingestion/scraper_offline.py Outdated
Comment thread src/ingestion/scrapers/html_scraper.py Outdated
Comment thread src/ingestion/scrapers/html_scraper.py Outdated
Comment thread src/ingestion/scrapers/html_scraper.py Outdated
Comment thread src/ingestion/scrapers/html_scraper.py
Comment thread src/ingestion/scrapers/html_scraper.py Outdated
Comment thread src/ingestion/scrapers/html_scraper.py Outdated
Comment thread src/ingestion/scrapers/html_scraper.py Outdated
@mikesiez mikesiez requested a review from AJaccP July 4, 2026 15:25
@AJaccP AJaccP merged commit 5f71b66 into main Jul 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve scraper's content extraction

2 participants