View Single Post
Old 09-07-2012, 07:27 AM   #10
eroche
Junior Member
eroche began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Sep 2012
Device: sony ereader
Nicolash I was trying to do the same thing the other day. You can do what your asking using a basicnewsrecipe class and the parse_index function. The following should get you started
Spoiler:
from calibre.web.feeds.news import BasicNewsRecipe

class BBC(BasicNewsRecipe):
title = 'Latest Headlines, Business and Sport from RTE (Ireland)'
def parse_index(self):
url = 'http://www.bbc.com/'
feeds = []
articles = [({'title': 'BBC Web', 'url': url, 'description':'', 'date':''})]
feeds.append( ( 'BBC Website', articles ) )
return feeds


Basically all you need to do is inherit a BasicNewsRecipe class and then initialise a feeds variable with the correct paramaters, calibre does the rest
eroche is offline   Reply With Quote