Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 01-02-2013, 11:33 AM   #1
swerling
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:

Code:
require 'mechanize'
require 'nokogiri'

(0..1000).each do |i|
  url = "http://www.todayszaman.com/#{i}.rss"
  page = Mechanize.new.get(url)
  if page.body.size > 20
    section = Nokogiri::HTML(page.body).xpath("//title").first.inner_html
    puts "#{url} => #{section}"
  end
end
Attached Files
File Type: gz todays_zaman.py.gz (1.4 KB, 30 views)
swerling is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
English APA.AZ Recipe BetterRed Recipes 2 11-26-2012 02:58 PM
English Pravda recipe Raskospoon Recipes 2 11-02-2012 05:23 AM
Request: Please update Psychology Today recipe underwarez Recipes 0 07-04-2012 01:50 PM
Recipe for Skylife (English) thomass Recipes 0 11-28-2011 09:49 PM
Recipe for "Today's Zaman" thomass Recipes 0 07-01-2011 02:59 AM


All times are GMT -4. The time now is 09:53 AM.


MobileRead.com is a privately owned, operated and funded community.