![]() |
#1 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Mar 2013
Device: nook color
|
Incomplete magazines (Smithsonian, Scientific American)
i apologize if this question has been asked before: lately i'm not receiving many articles or any articles in the magazines i download using Calibre. specifically Smithsonian Mag, The New Yorker, Psychology Today and Scientific American. Are these no longer offered for free?
Thanks. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,231
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Many news websites lately are moving to using paywalls. Visit the website and check foryourself. It may just be that the website has changed and the recipe needs adjusting in calibre.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
None of the mentioned magazines ever offered full content for free. They are just reducing the number of freely acailable articles.
|
![]() |
![]() |
![]() |
#4 | |
Member
![]() Posts: 14
Karma: 10
Join Date: Dec 2011
Device: Kindle
|
Quote:
def preprocess_html(self, soup): for item in soup.findAll(style=True): del item['style'] auth = soup.find(attrs={'id':'articleauthor'}) if auth: alink = auth.find('a') if alink and alink.string is not None: txt = alink.string alink.replaceWith(txt) return soup I'm not very comfortable editing code but would try it if there's something new that would work. Many thanks for your help. Last edited by nhow; 04-05-2013 at 05:19 AM. |
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 55
Karma: 13316
Join Date: Jul 2012
Device: iPad
|
With the exception of Smithsonian, all other three publish an increasingly smaller number of their articles online (New Yorker publishes their articles in a flash-based archive, I believe, which makes making a recipe incredibly hard, if not theoretically impossible). Unless they change their policy, there is not much can be done, I think.
Last edited by rainrdx; 04-05-2013 at 09:44 PM. |
![]() |
![]() |
![]() |
#7 | |
Member
![]() Posts: 14
Karma: 10
Join Date: Dec 2011
Device: Kindle
|
Quote:
Thank you. ![]() |
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() Posts: 63
Karma: 46
Join Date: Feb 2011
Device: Kindle 3 (cracked screen!); PW1; Oasis
|
Scientific American still provides content, but the recipe needs a fix:
Replace Code:
for a in soup.find(attrs={'class':'primaryCol'}).findAll('a',attrs={'title':'Feature'}): Code:
for a in soup.find(attrs={'class':'doubleWide'}).find(attrs={'class':'primaryCol'}).findAll('a',attrs={'title':'Feature'}): Code:
remove_tags = [dict(name='a', attrs={'class':'tinyCommentCount'}) ,dict(name='div', attrs={'id':'bigCoverModule'}) ,dict(name='div', attrs={'class':'addInfo'}) ] |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scientific American Recipe broken | Mixx | Recipes | 5 | 09-18-2012 02:01 AM |
Best reader for Scientific American Digital | Banner | Which one should I buy? | 0 | 06-23-2011 02:26 AM |
Scientific American | Starson17 | Recipes | 13 | 09-25-2010 03:37 PM |
Scientific American recipe | Stingo | Calibre | 2 | 10-30-2009 05:42 PM |
Scientific American E-Ink Article | wallcraft | News | 1 | 05-28-2008 11:59 AM |