View Single Post
Old 01-02-2013, 11:33 AM   #1
Junior Member
swerling began at the beginning.
Posts: 5
Karma: 10
Join Date: Jan 2013
Device: kindle
Today's Zaman (english) recipe update

Fix all RSS feed urls, added removed some invalid ones, and added a few undocumented ones ('Diplomacy', 'Food', etc).

Valid feeds were gathered using the following ruby script:

require 'mechanize'
require 'nokogiri'

(0..1000).each do |i|
  url = "{i}.rss"
  page =
  if page.body.size > 20
    section = Nokogiri::HTML(page.body).xpath("//title").first.inner_html
    puts "#{url} => #{section}"
Attached Files
File Type: gz (1.4 KB, 68 views)
swerling is offline   Reply With Quote