04-24-2010, 10:10 PM | #1846 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
04-24-2010, 10:42 PM | #1847 |
Junior Member
Posts: 3
Karma: 10
Join Date: Apr 2010
Location: Australia
Device: Kindle Global Wireless
|
|
Advert | |
|
04-24-2010, 11:15 PM | #1848 |
Member
Posts: 10
Karma: 10
Join Date: Oct 2006
Device: SONY PRS-700, GEB 1150
|
I can see them in my browser....I do have other recipes that work.......I have uploaded The Nation and The New York Post. This is why it has me so baffled.......This is the first one I created via Calibre, but the others work fine.
|
04-25-2010, 02:45 AM | #1849 | |
Connoisseur
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
Quote:
Italian News Daily: IlMessaggero IlGiornale LaStampa (Editoriali) Italian News (Agency): ANSA.it ADNKronos.it I.T. News Italian: PuntoInformarico.it TheAppleLounge Androidiani Italian News of Cars and MotoCycles: InfoMotori.com Uk News: ElectronistaGadget (I.T. news) Ansa.it (English) What is the correct way to post all of them? A single zip with all, or a zip for every recipes? What is the correct values for author? This program is great, for me, and it's the main reason to buy an e-book reader!!!!! |
|
04-25-2010, 05:11 AM | #1850 |
Enthusiast
Posts: 26
Karma: 15448
Join Date: Apr 2010
Location: Leiden
Device: iRex DR800S, Kindle DX, Kobo H2O, Kobo Aura One, Kobo Forma, Kobo Sage
|
Recipe for the french book review of Le Monde
Can I adapt an existing recipe to get the news from the book department of the french newspaper Le Monde?
http://www.lemonde.fr/livres/ I am stunned by what is possible with Calibre and my irex DR800S. Thanks to you guys! |
Advert | |
|
04-25-2010, 08:30 AM | #1851 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
ebook-convert CatholicNews.recipe CatholicNews -vv> CatholicNews.txt It will create html in a folder called CatholicNews and put all the error messages into CatholicNews.txt. While it worked on mine with both recipes, it did throw some errors from the source. Perhaps one of the errors is making your machine hiccup. |
|
04-25-2010, 09:07 AM | #1852 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
I doubt if it matters how you zip them up. You are the author, unless someone else wrote it and you're just adding to it or fixing something. |
||
04-26-2010, 10:46 AM | #1853 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
New recipe for China Daily in english:
|
04-26-2010, 04:36 PM | #1854 |
Connoisseur
Posts: 98
Karma: 22
Join Date: Mar 2010
Device: IRiver Story, Ipod Touch, Android SmartPhone
|
|
04-27-2010, 05:16 PM | #1855 |
Enthusiast
Posts: 48
Karma: 14
Join Date: Jan 2010
Location: Palos Verdes, CA
Device: K2, K3, Jetbook Lite, iPhone4
|
Jackson Hole News & Guide
Anyone game to concoct a recipe for the Jackson Hole News & Guide? An index of the RSS feeds is at http://www.jhnewsandguide.com/rss.php.
TIA, Larry |
04-28-2010, 07:56 AM | #1856 |
Junior Member
Posts: 9
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505
|
recipe for sueddeutsche zeitung
Hi,
I have (had) a well working recipe for the textversion of sueddeutsche zeitung, which kiklop74 wrote. Today sueddeutsche changed the internal adressing of that webcontent e.g. from yesterdays adress http://www.sueddeutsche.de/sz/2010-04-27/politik/ to todays adress http://www.sueddeutsche.de/app/epape...ik/1272453301/ Would be great if you kiklop or somebody else could help me with the update. Many Thanks, exdream PS.: I don't necessarily need the function INDEX = PREFIX + strftime('/sz/%Y-%m-%d/'). I can also open the content in the browser and copy this new timecode (1272453301) manually to source code of the recipe right before the download. This is the old recipe: __license__ = 'GPL v3' __copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>' ''' www.sueddeutsche.de/sz/ ''' import urllib from calibre import strftime from calibre.web.feeds.news import BasicNewsRecipe class SueddeutscheZeitung(BasicNewsRecipe): title = 'Sueddeutsche Zeitung' __author__ = 'Darko Miletic' description = 'news from Germany' publisher = 'Sueddeutsche Zeitung' category = 'news, politics, Germany' no_stylesheets = True oldest_article = 2 encoding = 'cp1252' needs_subscription = True remove_empty_feeds = True PREFIX = 'http://www.sueddeutsche.de' # INDEX = PREFIX + strftime('/sz/%Y-%m-%d/') INDEX = 'http://www.sueddeutsche.de/sz/2010-04-28/' LOGIN = PREFIX + '/app/lbox/index.html' use_embedded_content = False masthead_url = 'http://pix.sueddeutsche.de/img/g_.gif' language = 'de_DE' extra_css = ' body{font-family: Arial,Helvetica,sans-serif} ' conversion_options = { 'comment' : description , 'tags' : category , 'publisher' : publisher , 'language' : language , 'linearize_tables' : True } remove_attributes = ['height','width'] def get_browser(self): br = BasicNewsRecipe.get_browser() br.open(self.INDEX) if self.username is not None and self.password is not None: data = urllib.urlencode({ 'login_name':self.username ,'login_passwort':self.password ,'lboxaction':'doLogin' ,'passtxt':'Passwort' ,'referer':self.INDEX ,'x':'22' ,'y':'7' }) br.open(self.LOGIN,data) return br remove_tags =[ dict(attrs={'class':'hidePrint'}) ,dict(name=['link','object','embed','base','iframe']) ] remove_tags_before = dict(name='h2') remove_tags_after = dict(attrs={'class':'author'}) feeds = [ (u'Politik' , INDEX + 'politik/' ) ,(u'Seite drei' , INDEX + 'seitedrei/' ) ,(u'Meinungsseite', INDEX + 'meinungsseite/') ,(u'Wissen' , INDEX + 'wissen/' ) ,(u'Panorama' , INDEX + 'panorama/' ) ,(u'Feuilleton' , INDEX + 'feuilleton/' ) ,(u'Medien' , INDEX + 'medien/' ) ,(u'Wirtschaft' , INDEX + 'wirtschaft/' ) ,(u'Sport' , INDEX + 'sport/' ) ,(u'Bayern' , INDEX + 'bayern/' ) ,(u'Muenchen' , INDEX + 'muenchen/' ) ,(u'jetzt.de' , INDEX + 'jetzt.de/' ) ] def parse_index(self): totalfeeds = [] lfeeds = self.get_feeds() for feedobj in lfeeds: feedtitle, feedurl = feedobj self.report_progress(0, _('Fetching feed')+' %s...'%(feedtitle if feedtitle else feedurl)) articles = [] soup = self.index_to_soup(feedurl) tbl = soup.find(attrs={'class':'szprintd'}) for item in tbl.findAll(name='td',attrs={'class':'topthema'}): atag = item.find(attrs={'class':'Titel'}).a ptag = item.find('p') if ptag: stag = ptag.find('script') if stag: stag.extract() url = self.PREFIX + atag['href'] title = self.tag_to_string(atag) description = self.tag_to_string(ptag) articles.append({ 'title' :title ,'date' :strftime(self.timefmt) ,'url' :url ,'description':description }) totalfeeds.append((feedtitle, articles)) return totalfeeds def print_version(self, url): return url + 'print.html' |
04-28-2010, 08:08 AM | #1857 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
There is really no need to send recipe which is already included into calibre. Instead you open a bug issue in calibre's trac. I'll take a look now and post update.
|
04-28-2010, 09:03 AM | #1858 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
This site is really annoying with all these changes they do all of the time.
Updated recipe for payed content for sueddeutsche zeitung: |
04-28-2010, 12:32 PM | #1859 |
Member
Posts: 10
Karma: 10
Join Date: Apr 2010
Device: Nook
|
Observa.com.uy
This is my first recipe. It's for the uruguayan newspaper El Observador (Observa.com.uy) Don't know if this is of interest of someone but i share it just in case.
Code:
#!/usr/bin/env python __license__ = 'GPL v3' __author__ = '2010, Yuri Alvarez<me at yurialvarez.com>' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' ''' observa.com.uy ''' from calibre.web.feeds.news import BasicNewsRecipe class ObservaDigital(BasicNewsRecipe): title = 'Observa Digital' description = 'Noticias de Uruguay' language = 'es' timefmt = '[%a, %d %b, %Y]' use_embedded_content = False recursion = 5 encoding = 'utf8' remove_javascript = True no_stylesheets = True oldest_article = 2 max_articles_per_feed = 100 keep_only_tags = [dict(id=['contenido'])] remove_tags = [ dict(name='div', attrs={'id':'contenedorVinculadas'}), dict(name='p', attrs={'id':'nota_firma'}), dict(name=['object','link']) ] extra_css = ''' h1{font-family:Geneva, Arial, Helvetica, sans-serif;color:#154B7A;} h3{font-size: 14px;color:#999999; font-family:Geneva, Arial, Helvetica, sans-serif;font-weight: bold;} h2{color:#666666; font-family:Geneva, Arial, Helvetica, sans-serif;font-size:small;} p {font-family:Arial,Helvetica,sans-serif;} ''' feeds = [ (u'Actualidad', u'http://www.observa.com.uy/RSS/actualidad.xml'), (u'Deportes', u'http://www.observa.com.uy/RSS/deportes.xml'), (u'Vida', u'http://www.observa.com.uy/RSS/vida.xml'), (u'Ciencia y Tecnologia', u'http://www.observa.com.uy/RSS/ciencia.xml') ] def get_cover_url(self): cover_url = None index = 'http://www.observa.com.uy/' soup = self.index_to_soup(index) for image in soup.findAll('img',alt=True): if image['alt'].startswith('Tapa El Observador'): return image['src'].rstrip('b.jpg') + '.jpg' return None def preprocess_html(self, soup): for item in soup.findAll(style=True): del item['style'] return soup |
04-28-2010, 02:09 PM | #1860 |
Junior Member
Posts: 9
Karma: 10
Join Date: Jan 2010
Device: Sony PRS-505
|
Hi Kiklop,
sorry for sending the whole recipe I didn't realize that it is part of calibres recipes now. The recipe worked fine after an import of strftime. But I have another problem with it now. Sueddeutsche releases the textversion of the following day the evening before. With the old recipe it was possible to replace the strftime-function with a string and set the date manually to the following day. With this recipe this doesn't work anymore. Would be great if you have a solution for that for the new recipe. Thanks a lot, exdream |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 02:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 12:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 05:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |