09-25-2010, 01:31 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
iDnes.cz news
Hi,
I was trying to do a recipe for iDnes.cz news (RSS: http://servis.idnes.cz/rss.asp?c=zpravodaj) but I stuck with print_version. I didn't find any similiar rss source to this one. I would appriciate help with converting article url. example article url: http://zpravy.idnes.cz/pojd-s-nami-k...1427_krimi_zep its coresponding printable version url: http://zpravy.idnes.cz/tiskni.asp?c=...1427_krimi_zep Thank you for any little help. |
09-25-2010, 01:40 PM | #2 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
example: "spoiler" "code' paste your recipe code here "/code" "/spoiler" here is a general idea of how to convert the print_version You state the original url is: and the printversion is: So what the only thing you need from the original url is everything after the ? mark In that case you simply can split the url at the ? and then it will be in two parts u'http://xxxxxxxxxxxxxxxxxxxxxx' u'c=A100925_171427_krimi_zep' the split will be 0 based so we want the index of 1 see below: Code:
def print_version(self, url): split_url = url.split("?") print_url = 'http://zpravy.idnes.cz/tiskni.asp? ' + split_url[1] ' return print_url Last edited by TonytheBookworm; 09-25-2010 at 01:53 PM. Reason: added example |
|
Advert | |
|
09-25-2010, 03:37 PM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
Thank you very much. Your print_version is exactly what I needed to move on.
Here is my actual working code: Spoiler:
Please, can you help me how to fix bad diacritics in Section List and Article List on my Kindle (articles have correct diacritics). The website uses cp1250 encoding. |
09-25-2010, 03:45 PM | #4 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
|
|
09-25-2010, 04:02 PM | #5 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
ok, thanks.
I hope someone write according the encoding issue. |
Advert | |
|
10-05-2010, 03:18 PM | #7 |
Junior Member
Posts: 5
Karma: 10
Join Date: Sep 2010
Device: Kindle 3
|
New Calibre version 0.7.22 fixed the encoding issue in Section List and Article List. Thank you!
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add only news tag to downloaded news? | eric11210 | Calibre | 2 | 08-06-2010 05:51 AM |
Old news but good news | PsyDocJoanne | Reading Recommendations | 31 | 10-29-2008 07:05 AM |
Bad news, good news, and a question | MSWallack | Sony Reader | 3 | 07-15-2008 03:25 PM |
AP News Begins Charging Web News Providers | Bob Russell | Lounge | 1 | 04-20-2005 10:38 AM |