I've wondered why people have tried all sorts of cumbersome ways to splice metadata onto HTML like RDFa but never tried the obvious approach of basing extraction rules on CSS selectors... Often these work without the cooperation of the target site so long as they use CSS the way it was supposed be used (e.g. not tailwind, bootstrap, etc.)
Generate RSS feed for any website using CSS selectors
21–30 of 55 posts
Re: Generate RSS feed for any website using CSS selectors
#22It works pretty well, although every once in a while Goodreads hiccups, and then RSS bridge gives me a bunch of "new posts" that are actually error messages.
Re: Generate RSS feed for any website using CSS selectors
#23For me, "CSS selectors" always seems like a deceptive term, if it means selecting HTML tag elements. What if the website does not use styling.
I read 1000s of websites, including all HN submissions, without using CSS. When I want to extract information from a website, I focus on patterns in the page. They might be HTML, they might be style elements, but they could be anything. I never assume that all websites will wrap the information I want in certain elements. There is a ridiculous amount of random variation amongst websites.
Re: Generate RSS feed for any website using CSS selectors
#24"Generate RSS feed for any website using CSS selectors" For me, "CSS selectors" always seems like a deceptive term, if it means selecting HTML tag elements. What if the website does not use styling. I read 1000s of websites, including all HN submissions, without using CSS. When I want to extract information from a website, I focus on patterns in the page. They might be HTML, they might be style elements, but they cou…
The key here is that it uses selectors, not the style sheets themselves.
Re: Generate RSS feed for any website using CSS selectors
#25"Generate RSS feed for any website using CSS selectors" For me, "CSS selectors" always seems like a deceptive term, if it means selecting HTML tag elements. What if the website does not use styling. I read 1000s of websites, including all HN submissions, without using CSS. When I want to extract information from a website, I focus on patterns in the page. They might be HTML, they might be style elements, but they cou…
Re: Generate RSS feed for any website using CSS selectors
#26These days I just let chagpt generate a script that scrapes a site and spits out an rss file. Then I run it with cron.
Re: Generate RSS feed for any website using CSS selectors
#27These days I just let chagpt generate a script that scrapes a site and spits out an rss file. Then I run it with cron.
Re: Generate RSS feed for any website using CSS selectors
#28- splitting the full feed by theme of the article into separate feeds and at the same time
- remove a few keywords and also
- get article length and split into a long / short feed
- Or maybe get what you used to have on some news sites - subscribe only to a specific author instead of getting bombarded with hundreds of items in a feed
Re: Generate RSS feed for any website using CSS selectors
#29I run my own instance of RSS Bridge to keep track of authors that I like on Goodreads. It works pretty well, although every once in a while Goodreads hiccups, and then RSS bridge gives me a bunch of "new posts" that are actually error messages.
Re: Generate RSS feed for any website using CSS selectors
#30This honestly is standard web scraping but these projects always catch my attention. You're bound at the mercy of rate-limiting firewalls (so you'll have to rotate proxies if you intend on using this heavily) on top of the standard CloudFront bot detection recaptcha, and div-obfuscation (a good example of this is Facebook).
At large scale, like the kind of traffic I started seeing when I ran a public rss-bridge Instagram/Telegram bridge - rate limits are unavoidable.