![]() |
#2161 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
|
|
![]() |
![]() |
#2162 |
Not who you think I am...
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 374
Karma: 30283
Join Date: Jan 2010
Location: Honolulu
Device: PocketBook 360 -- Ivory
|
|
![]() |
Advert | |
|
![]() |
#2163 | |
Member
![]() Posts: 16
Karma: 10
Join Date: May 2010
Location: Southern California
Device: JetBook-Lite
|
Hey Starson17, help!
![]() Quote:
Code:
def postprocess_html(self, soup): for tag in soup.findAll('dic', dict(attrs={'class':["article-info clearfix"]})): tag.extract() return soup |
|
![]() |
![]() |
#2164 |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
the recipe you have made does not cover whole magazine,it just fetches few of the feeds.Please do have a look at this link
http://business.in.com/magazine/magazinearchive/1/1 the recipe should download the latest issue from this link ,like in this case it should have fetched the 18 june issue. ![]() |
![]() |
![]() |
#2165 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
(http://business.in.com/rssfeed/rss_all.xml) that supposedly contains all articles of the latest issue. The fact that the webmaster of Forbes India doesn't update the RSS feed to link all articles (as its name suggests) is beyond my comprehension and control but the recipe does point to the latest issue (whatever the date is). Yes, I went to the link you gave above. Please take a look again at the top right hand side of that webpage and find the column that says "Latest Issue" and let me know what you see. ![]() Spoiler:
Click on the Show button above to see what I saw. You said 18 june is the latest issue but look at what the website said. It's 02 July. Last edited by rty; 06-20-2010 at 01:48 AM. |
|
![]() |
Advert | |
|
![]() |
#2166 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I'll take a shot at it
![]() Quote:
Code:
def postprocess_html(self, soup): for tag in soup.findAll('dic', dict(attrs={'class':["article-info clearfix"]})): #tag.extract() print 'The tag to be extracted is: ', tag return soup Quote:
|
||
![]() |
![]() |
#2167 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
I found out the hard way when I first used this tag.extract that "extract" under this context actually means "discard" or "dispose" or "get rid of". ![]() |
|
![]() |
![]() |
#2168 |
Junior Member
![]() Posts: 5
Karma: 12
Join Date: Jun 2010
Device: Kobo
|
London Free Press
|
![]() |
![]() |
#2169 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
You were trying to do cleaning - extract is another way to do that. Last edited by Starson17; 06-20-2010 at 10:20 AM. |
||
![]() |
![]() |
#2170 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 49
Karma: 2062
Join Date: May 2010
Device: iPad (one)
|
London Review of Books
Can one of you generous and talented people revise the LRB recipe? I'm a subscriber and get all the web content, but the recipe gives me only a letter or two. Thanks!
Michael Steinberg PS. calibre is da bomb! |
![]() |
![]() |
#2171 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
![]() |
|
![]() |
![]() |
#2172 |
Junior Member
![]() Posts: 5
Karma: 12
Join Date: Jun 2010
Device: Kobo
|
|
![]() |
![]() |
#2173 | |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
Quote:
but if you go to the latest issue most of the links are not activated ,if you try to click the links the link says that the article will be available on 1st of july.Actually they are just giving you a fair idea of what is going to be in the latest issue beforehand but the latest issue is of18 june. |
|
![]() |
![]() |
#2174 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
As I mentioned, the recipe picks up articles from the feed called "Complete Business.in.com" http://business.in.com/rssfeed/rss_all.xml Anything that is not included by Forbes India in this particular feed, there's nothing I can do about it. Maybe you can write to Forbes India to ask them to include all the articles of the latest issue in the RSS feed page and see if they care. Last edited by rty; 06-21-2010 at 01:12 AM. |
|
![]() |
![]() |
#2175 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
![]() |
|
![]() |
![]() |
|
![]() |
||||
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 |