09-22-2010, 03:05 PM | #2821 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Last edited by Starson17; 09-22-2010 at 03:20 PM. |
|
09-22-2010, 04:36 PM | #2822 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
thanks again |
|
09-22-2010, 04:38 PM | #2823 | |
Member
Posts: 19
Karma: 10
Join Date: Feb 2010
Location: Los Angeles, CA
Device: Kindle 3
|
They're not appearing in the sylesheet.css either (the recursive grep would catch it) but i'll do a deeper inspection there.
Quote:
Code:
>>> class A(object): ... foo = """ ... This is a docstring. No ... indents necessary within the block. ... """ ... >>> a = A() >>> a.foo '\nThis is a docstring. No \nindents necessary within the block.\n' |
|
09-22-2010, 04:46 PM | #2824 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
def preprocess_html(self, soup): for item in soup.findAll(attrs={'style':True}): del item['style'] return soup |
|
09-22-2010, 05:12 PM | #2825 |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
cool I just learned something from you. the match_regex is great. I would have done that with the make_links() like you showed me in the past. but i seen the match_regex and was wondering okay what the heck does this do. then i see well cool he looks at the page and fines those links and follows only those links. thanks for using that
|
09-22-2010, 07:36 PM | #2826 | |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2010
Device: Kobo
|
Quote:
|
|
09-22-2010, 08:42 PM | #2827 | |
Enthusiast
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
Quote:
|
|
09-22-2010, 08:43 PM | #2828 |
Enthusiast
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
there is already a recipe for foreign policy but it covers rss feeds can anyone make the recipe for print edition
http://www.foreignpolicy.com/issues/current thanks in advance |
09-22-2010, 10:05 PM | #2829 |
Junior Member
Posts: 4
Karma: 10
Join Date: Sep 2010
Device: kindle dx
|
Could you please create a Kindle recipe for the french version of the Jerusalem post.
http://fr.jpost.com/ Thanks Last edited by jenden; 09-22-2010 at 11:06 PM. |
09-22-2010, 11:36 PM | #2830 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
I know I have personally done 5 or better recipes for you and gave you detailed tips on how to do it. I have no problem what so ever helping you and I think I speak for the rest of us here when I say give it a try. Post some of your code, ask specific questions, search the built in recipes, search this forum starting with my first post and work yourself foward. I didn't know anything about this at all other than the fact that it could be done with a will. So, may I suggest trying to learn how to do it so you can join us in making calibre better by contributing your recipes. I hope you understand where I'm coming from and hate to sound off base. Once again, I am here to help and wouldn't know what I know without the help of others. Yet, the only way you are gonna learn this stuff is by doing it |
|
09-23-2010, 05:35 AM | #2831 |
Member
Posts: 24
Karma: 10
Join Date: Mar 2010
Location: Australia
Device: Kindle latest Generation
|
Is there any chance someone could produce a recipe for an Melbourne, Australian newspaper called Herald Sun.
Thanks Ray |
09-23-2010, 06:39 AM | #2832 | |
Enthusiast
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
Quote:
|
|
09-23-2010, 07:45 AM | #2833 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
09-23-2010, 12:38 PM | #2834 | |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
Please goto http://www.heraldsun.com.au/help/rss and tell me which feeds you would like and I will work on it for you. I will do the breaking news feed for now and await your reply. Edit: I went ahead and done the whole thing. I commented out the AFL teams and you can pick whichever one you like. Last edited by TonytheBookworm; 09-23-2010 at 01:59 PM. Reason: added code |
|
09-24-2010, 01:45 AM | #2835 |
Addict
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Starson17,
I need your help on this one if you gotta minute. I have been battling this feed which I would figure would be simple to do. But for some reason it is giving me trouble even with the basic. If i take the keep_only tag out it will work but of course I want to use that to get rid of the ads and all the other junk. I have tried every dang tag I can think of by trying to filter it with firebug. This is what i have come up with so far. Basic for sure but I get no content when I keep only the tag that appears to be the parent. HELP here is what I got so far. If you can just help me with the keep_only I think I can figure out the rest unless there is something screwy that I have never faced before going on here. Here is what i have so far and thanks. Spoiler:
edit: alright I got it working but i'm confused on this. In previous feeds I have done i enter the feed address and it gets the link and uses it as the title and then the content that is listed under it parses part of it and uses it as a description. Well in this feed here the content is all on the feed page so it doesn't go to the actual link. In the code above I was assuming that it went to the links one by one inside the feed. I was trying to strip the content that the link showed. So my question to you is, what determines if it uses the feed main page content (the one that has all the links on it) or if it navigates to each link? I hope you understand what I'm asking if not i will try to explain myself better. this code here works cause for whatever reason the links on the feed page are not followed. but in other basic feeds i have simply done nothing more than add the feed and it follows the link Spoiler:
Last edited by TonytheBookworm; 09-24-2010 at 02:03 AM. Reason: confused see addition |
|
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 |