trafilatura
newspaper
Our great sponsors
trafilatura | newspaper | |
---|---|---|
13 | 13 | |
2,778 | 13,720 | |
- | - | |
8.7 | 0.0 | |
3 days ago | 24 days ago | |
Python | Python | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
trafilatura
-
Trafilatura: Python tool to gather text on the Web
The feature list answers that question pretty well: https://github.com/adbar/trafilatura#features
Basically: you could implement all of this on top of BeautifulSoup - polite crawling policies, sitemap and feed parsing, URL de-duplication, parallel processing, download queues, heuristics for extracting just the main article content, metadata extraction, language detection... but it would require writing an enormous amount of extra code.
-
Show HN: Build AI Dags with Memory; Run and Validate LLM Tools in Containers
The WebScraper tool uses Trafilatura [1] to scrape and parse HTML—nothing too fancy. "Scraping" a React site would require a totally different approach, probably something more akin to Adept's ACT-1 [2].
I run a local chat app built with Griptape and I use it to give me summaries of web pages or answer specific questions all the time :)
1. https://github.com/adbar/trafilatura/
-
Powerful and free scraper with a headless browser under the hood and Readability for parsing
I've been playing with Trafilatura lately, and it's very good. There are a few very thorough comparisons to other projects and it really shines. It doesn't do anything headless from what I can tell, but it doesn't have to do the scraping itself. Maybe an option could be to use Playwright to scrape, then Trafilatura to parse. Food for thought.
-
I made a Chrome Extension that lets you ask any question about the page you are on (bluf.ai)
Cool! If you care to explain me further... :) ... I tried parsing a page using: https://github.com/adbar/trafilatura, json stringify it and passing it to https://platform.openai.com/docs/api-reference/embeddings/create. How do I use the response as an input later? <3
-
Testing fast installation in tear-down environment
I want to test how easy it is to install a package plus special extra dependencies to run a certain script in that package: https://github.com/adbar/trafilatura
- Advice on standard design pattern for comparison test script
- Automate dependency installation
- Issue with sklearn
- Questions about some code
- How does Firefox's Reader View work?
newspaper
- Gathering News Headlines
-
Are there js libs for extracting content from a DOM document?
I think then you're looking for something similar to newspaper3k. Unfortunately it's written in python. https://github.com/codelucas/newspaper
- How do i find a good News API?
-
Website categorization - use cases, taxonomies, content extraction
There are also many ready made libraries available for content extraction written in python which is more commonly used in data science, e.g. goose3 (https://github.com/goose3/goose3) and newspaper (https://github.com/codelucas/newspaper).
- Web scraping and outputting final loaded text
-
Is there a web text extraction library for reader mode written in Java/Kotlin?
I have searched the web but the library I have found was for Python only. I need a library written in Java or Kotlin so that I could use it on Android. Is there any library for that? If you know that there is no such Java library, please let me know that so that I could stop searching.
-
Best content extraction library from news link?
I have tried several freemium API, but they drop some whole paragraphs of a simple blog article. Next I'm considering to try out https://github.com/codelucas/newspaper , which executes NLP processing.
-
Save URL to database and capture page content using the API (similar to web clipper)?
I don't think there is any library that works better with the Notion API than others. I used https://github.com/codelucas/newspaper a few years back for article extractions and it worked great!
-
raspberrypi to scrape news 24x7
just by looking for a sec on GitHub I found this. The docs are here and at first glance this thing seems to still be maintained and absolutely feature packed
-
Scrapers for replacing RSS 2.0 articles with their full source articles
These Python scrapers take RAW RSS 2.0 XML data as input and replace their description s with full source articles parsed/fetched via Newspaper (first scraper) or Article-Parser (second scraper).
What are some alternatives?
python-goose - Html Content / Article Extractor, web scrapping lib in Python
TWINT - An advanced Twitter scraping & OSINT tool written in Python that doesn't use Twitter's API, allowing you to scrape a user's followers, following, Tweets and more while evading most API limitations.
html2text - Convert HTML to Markdown-formatted text.
python-readability - fast python port of arc90's readability tool, updated to match latest readability.js!
Goose3 - A Python 3 compatible version of goose http://goose3.readthedocs.io/en/latest/index.html
textract - extract text from any document. no muss. no fuss.