07-13-2011, 02:38 PM | #1 |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2011
Device: K3
|
Would it be possible to get a recipe for National Geographic Mag?
I know there are already recipes, but those are for the Daily News feed. I was curious if one could be made for the print edition only: http://feeds.nationalgeographic.com/ng/NGM/NGM_Magazine
|
07-14-2011, 12:50 AM | #2 |
Member
Posts: 15
Karma: 14
Join Date: Jun 2011
Location: Brazil
Device: Kindle
|
NatGeoMag recipe
Hi Gnome!
Here is it! I hope you like it! By the way: I like KDE! Spoiler:
|
Advert | |
|
07-14-2011, 01:48 PM | #3 |
Junior Member
Posts: 8
Karma: 10
Join Date: May 2011
Device: K3
|
Thanks!
|
07-14-2011, 10:00 PM | #4 | |
Connoisseur
Posts: 62
Karma: 46
Join Date: Feb 2011
Device: Kindle 3 (cracked screen!); PW1; Oasis
|
Alternative recipe version with photos, but ...
Quote:
Code:
class AdvancedUserRecipe1310601553(BasicNewsRecipe): title = u'NationalGeographicPrintEdition' oldest_article = 7 max_articles_per_feed = 100 use_embedded_content = False keep_only_tags = [dict(attrs={'class':'main_3narrow'}), dict(attrs={'class':'main_2wide'}), dict(attrs={'class':'slide'}) ] feeds = [(u'National Geographic Print Edition', u'http://feeds.nationalgeographic.com/ng/NGM/NGM_Magazine')] |
|
07-14-2011, 10:28 PM | #5 | |
Member
Posts: 15
Karma: 14
Join Date: Jun 2011
Location: Brazil
Device: Kindle
|
Quote:
|
|
Advert | |
|
07-15-2011, 09:09 AM | #6 | |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Basically, a multipage does this: 1) it finds the link to the "next page" 2) it goes to that page and gets everything on it that the recipe author wants. 3) it pastes that stuff into the first page. 4) it repeats 1-3 until there is no "next page" link. The recursion is tricky to understand, but it's easy to copy the multipage code, which is already set up. Almost every multipage recipe is the same and copies the same bit of multipage code, except for the part about what tag is used to find the "next page" and the part about what part of the next page to keep. Start with the Adventure Gamer recipe, then ask questions about what you don't understand. |
|
11-19-2011, 04:23 PM | #7 |
Junior Member
Posts: 3
Karma: 10
Join Date: May 2009
Device: none
|
Has anyone consolidated this into some working code yet? Though my username is Iostream, I'm not that handy with code myself.
I just need everything that is in the printed edition, including the pictures. Thanks, Iostream |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
National Geographic promised, where is it? | jeannieju | Calibre | 6 | 06-25-2011 01:17 AM |
National Geographic (DE) | xXxXxXxXxXx | Recipes | 0 | 05-21-2011 08:56 AM |
Recipe for National Geographic *Updated* | gagsays | Recipes | 3 | 05-19-2011 12:30 PM |
National Geographic Recipe (need some improvement) | gagsays | Recipes | 6 | 05-19-2011 12:21 PM |
National Geographic Request | Oilfieldtrash | Recipes | 5 | 11-29-2010 08:35 AM |