Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-21-2016, 01:02 AM   #1
dumanb
Junior Member
dumanb began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2016
Device: Kindle Paper White 2
Custom news fetch: Unreadable text

Hi guys,

I am kind of new in the forum. Could you help me with this please?

I created a custom receipt with Calibre and added some feeds. Calibre downloads the feeds and sends them to my kindle but the text of some feeds are not readable; they look like bunch of codes like this: ÐZ¸«ðÌÞOo—Lf#!)vŸÂÕDzÃIï¢$è8é a…zŸf#¿…üéôë˜úÜÉ¡ÙMèÊhƒ=¤¢oLýÃYétº°~·âÆ/‰]'òÿŠ ½ð�ÖçâêøÒ®ß¬üΡÉèšJ�åPÉeüŽTäù°z


What's that I am doing wrong? Did I used the wrong feed url?
This is how does it looks like when I click the advanced mode:

#!/usr/bin/env python2
# vim:fileencoding=utf-8
from __future__ import unicode_literals, division, absolute_import, print_function
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1453356016(BasicNewsRecipe):
title = 'Feeds'
oldest_article = 1
max_articles_per_feed = 100
auto_cleanup = True

feeds = [
('Experimental Economics', 'http://nep.repec.org/rss/nep-exp.rss.xml'),
('Development Economics', 'http://nep.repec.org/rss/nep-dev.rss.xml'),
('Experimental Economics', 'http://link.springer.com/search.rss?facet-content-type=Article&facet-journal-id=10683&channel-name=Experimental%20Economics'),
('Evolutionary Economics', 'http://nep.repec.org/rss/nep-evo.rss.xml'),
('IZA Labor Economics', 'http://www.izajole.com/latest/rss'),
('Labour Economics', 'http://nep.repec.org/rss/nep-lab.rss.xml'),
('Social Norms And Social Capital', 'http://nep.repec.org/rss/nep-soc.rss.xml'),
('The Quarterly Journal Of Economics', 'http://qje.oxfordjournals.org/rss/current.xml'),
('Evonomics', 'http://evonomics.com/feed/'),
('Cultural Economics', 'http://nep.repec.org/rss/nep-cul.rss.xml'),
('Law and Economics', 'http://nep.repec.org/rss/nep-law.rss.xml'),
('Public Economics', 'http://nep.repec.org/rss/nep-pbe.rss.xml'),
('Positive Political Economics', 'http://nep.repec.org/rss/nep-pol.rss.xml'),
]

Last edited by dumanb; 01-21-2016 at 01:04 AM.
dumanb is offline   Reply With Quote
Old 01-21-2016, 03:36 AM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You will notice that each of those articles have a source link -- which points to a PDF file.

Note for the future: calibre's recipe subsystem really doesn't like it when you try to pretend PDF files are actually HTML files.
eschwartz is offline   Reply With Quote
Advert
Old 01-21-2016, 12:52 PM   #3
dumanb
Junior Member
dumanb began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2016
Device: Kindle Paper White 2
Smile

Thanks for explaining.
But is there any solution? Can I enter an address that directly gets the pdf and converts it to a kindle version?
dumanb is offline   Reply With Quote
Old 01-21-2016, 12:55 PM   #4
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I have no idea -- I don't really use the recipes feature.

You could certainly download the PDF and manually add it as a new book in calibre, but I am afraid I have no idea how to scrape for PDFs using a recipe -- if it is even possible.
eschwartz is offline   Reply With Quote
Old 01-22-2016, 10:35 AM   #5
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Take a look on re-usable code post #16. achims made a nice snipped of code you maybe can use for your own recipe exercises. You will find a usage for the code in an old recipe: https://www.mobileread.com/forums/sho...d.php?t=155792
Divingduck is offline   Reply With Quote
Advert
Old 01-22-2016, 12:37 PM   #6
dumanb
Junior Member
dumanb began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2016
Device: Kindle Paper White 2
This is to complicated for me.

If the feed url ends with .xml which usually is the case, calibre won't convert it to kindle version (.mobi), meaning that Calibre Fetch news is useless for kindle.

It would be surprising if no one came up with a solution yet.
dumanb is offline   Reply With Quote
Old 01-22-2016, 08:53 PM   #7
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,487
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
The calibre news feed is really designed to handle regular web sites / feeds; one where the links are to normal HTML type pages. The site you are scripting contains material in PDF format. The fact that links end in XML has nothing to do with the inability to view on a Kindle; this will not work on an ePub reader either.
PeterT is offline   Reply With Quote
Old 01-23-2016, 08:16 PM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by dumanb View Post
This is to complicated for me.

If the feed url ends with .xml which usually is the case, calibre won't convert it to kindle version (.mobi), meaning that Calibre Fetch news is useless for kindle.

It would be surprising if no one came up with a solution yet.
The feed is .xml because it is XML.

Feeds are full of links -- the purpose of a feed is to tell you where the REAL articles are.

Unfortunately, the articles are provided as .pdf , which you will need to download separately since Fetch News is not designed to work with PDF (it does not matter what ereader you have, it still won't download in the first place).
eschwartz is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic news fetch: different news sources to different Kindles? kcp Calibre 4 01-24-2015 02:43 PM
902 Letters fade with use making text unreadable after 2 minutes. gregorias PocketBook 9 09-27-2012 02:59 PM
Fetch News doesn't (fetch news, that is) DJ Vollkasko Recipes 9 06-30-2012 03:11 AM
Fetch news from custom website kcmtoken Introduce Yourself 3 09-10-2011 07:43 PM
Unreadable text! Alexpride Calibre 6 01-19-2011 12:34 AM


All times are GMT -4. The time now is 05:13 PM.


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