Like this?ematulac wrote:*bump*
It would be nice to at least get the news that hits the Gentoo home page as an RSS feed.

Code: Select all
#!/usr/bin/ruby
require 'net/http'
latest_posts = Net::HTTP.get URI.parse("http://forums.gentoo.org/search.php?search_id=last")
lines = latest_posts.split("\n")
links = Array.new
lines.each do |line|
line =~ /<a/
$' =~ /<\/a>/
if $` != nil
links.push($`)
end
end
good_links = links.select { |link| link =~ /highlight-.html/ }
pre_url = "http://forums.gentoo.org/"
link_string = Array.new
good_links.each do |link|
link =~ /href=\"/
$' =~ /\?sid=/
url = pre_url + $`
link =~ /">/
link_string.push("#{url} #{$'}\n\n")
end
`echo "#{link_string.to_s}" | mutt -s "Gentoo Forum Activity" you@your_email.whatever`


Yeah, phpbb has some features that are easy to overlook. For example, it took me quite some time to figure out that the tiny little icon left to the "Posted: $date" field above each post can be used to link to the post directly, or that the "=> View newest post" and "=> View latest post" links on forums index pages have different semanticsmikegpitt wrote:Yep, that's exactly what I meant. I never realised there was an egosearch url. I thought that was just what people called it.Earthwings wrote:mikegpitt, I guess you mean egosearch?
or look at here: https://forums.gentoo.org/viewtopic-p-3 ... ml#3489923zsoltika wrote:Check this:
http://feed43.com/1704104341466847.xml
http://feed43.com/ is a brilliant app.
