metascraper
tidy-html5
metascraper | tidy-html5 | |
---|---|---|
6 | 9 | |
2,238 | 2,663 | |
0.9% | 0.3% | |
8.9 | 0.0 | |
13 days ago | 13 days ago | |
HTML | C | |
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.
metascraper
- Show HN: I made a tool to clean and convert any webpage to Markdown
-
Show HN: AboutIdeasNow – search /about, /ideas, /now pages of 7k+ personal sites
Yep but there is a fallback to metascraper [0] which does check the HTML tags. However the fallback didn't work in case GPT returns a 1970 date -- I just fixed this! [1]
I think you can now remove the date from your post content and it should still work. If you submit your website again it should do a re-scrape if you changed the content text. Thanks for catching this :)
[0] https://metascraper.js.org/#/
[1] https://github.com/lindylearn/aboutideasnow/commit/8b0ea5b46...
-
[Question] fetched data having "Promise<Any>" when it prints as a regular JSON object
200 {description: 'easily scrape metadata from an article on the web.', publisher: null, title: 'metascraper, easily scrape metadata from an article on the web.', url: 'https://metascraper.js.org'} [[Prototype]]: Object
-
9gag metadata scrapper
I am using this library https://github.com/microlinkhq/metascraper but it doesn't catch it.
-
Creating a serverless function to scrape web pages metadata
First of all, we'll use the got npm package to fetch the website content (feel free to use any other fetching library), and the metascraper npm package to extract the metadata:
-
Show HN: Link Preview (Unfurl/Expand) API
> After that, pricing starts at $25 per month for up to 15,000 requests.
This is very expensive for any decent usage. I have used tools like metascraper for this purpose and it worked pretty well. Setup just requires throwing a tiny nodejs app on a raspberry pi or $5 server and that can handle tons of requests.
https://github.com/microlinkhq/metascraper
tidy-html5
- Show HN: I made a tool to clean and convert any webpage to Markdown
- Localize HTML Tidy (README.md)
-
libtidy, compilation errors
So I included the tidy libraries in my project.
-
Searching for the *old* W3C XHTML/CSS validator or something of equivalent functionality
Maybe look into HTML Tidy. It's job is to clean up HTML and convert legacy code to modern form, so it knows about DTDs. You might be able to pass it some options to get what you want.
-
Converting a IETM delivered in HTML to XML S1000D 4.0.
I've always used tidy for HTML/XML formatting jobs.
-
Expand one very long HTML line (>30k characters) as multi-line formatted indented HTML?
Personally I use command that switches the file type to html, and then formats it with tidy. It assumes you're pasting into a new buffer.
-
Unminify HTML in terminal
I use tidy.
-
Inspecting the Clipboard (on Linux)
So I installed HTML tidy.
-
The most underused browser feature
Prune instructs the parser to remove any elements within the extracted article block that look superfluous. This can result in false positives, so we tend to disable it when we've gone to the trouble of creating site-specific extraction rules.
Tidy determines if the source HTML should be cleaned up first with HTML Tidy - https://github.com/htacg/tidy-html5. If you're parsing the source HTML with an HTML 5 parser, as we are now, it shouldn't be necessary any more (I think we actually ignore it now). We used it more before when we relied on libxml parsing, which often trips up on modern HTML.
What are some alternatives?
vercel - Develop. Preview. Ship.
parser - 📜 Extract meaningful content from the chaos of a web page
bbob - ⚡️Blazing fast js bbcode parser, that transforms and parses bbcode to AST with plugin support in pure javascript, no dependencies
readability.php - PHP port of Mozilla's Readability.js
url-metadata-scraper - Tiny Vercel serverless function to scrape metadata from a URL
readability - Readability is a library written in Go (golang) to parse, analyze and convert HTML pages into readable content. Originally an Arc90 Experiment, it is now incorporated into Safari’s Reader View.
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.
toltec - Community-maintained repository of free software for the reMarkable tablet.
icecast-parser - Node.js module for getting and parsing metadata from SHOUTcast/Icecast radio streams
readability - A standalone version of the readability lib
patch-package - Fix broken node modules instantly 🏃🏽♀️💨
SponsorBlock - Skip YouTube video sponsors (browser extension)