09-28-2014, 09:37 AM | #16 |
Guru
Posts: 735
Karma: 35936
Join Date: Apr 2011
Location: Shrewsury, MA
Device: Lenovo Android Tablet
|
It has worked and still works for me. I am in Massachusetts, USA.
Windows 7 Ultimate, 64-bit. Last edited by NSILMike; 09-28-2014 at 09:45 AM. |
09-28-2014, 11:11 AM | #17 |
Member
Posts: 10
Karma: 10
Join Date: Dec 2011
Device: Kindle
|
I'm also in France, and it's not working.
|
Advert | |
|
09-29-2014, 10:05 AM | #18 |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2014
Device: Kindle Paperwhite 1
|
I have the same problem, the Economist recipe doesn't work from a French IP. However, I could download it without a problem with a Dutch IP (via VPN). I don't see any differences in the website layout, but I didn't do a thorough comparison.
|
09-29-2014, 10:37 AM | #19 |
creator of calibre
Posts: 44,019
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Somebody that knows how to code and with a computer in France is going to have to debug this.
|
09-29-2014, 05:53 PM | #20 |
Junior Member
Posts: 1
Karma: 10
Join Date: Sep 2014
Device: kindle paperwhite
|
Same here, I am in France and it s not working anymore
Big thanks to the guy who will fix this ! |
Advert | |
|
10-01-2014, 12:50 PM | #21 |
Junior Member
Posts: 1
Karma: 10
Join Date: Oct 2014
Device: Kindle
|
I am also in France and most unhappy to report the Economist is not working for me anymore either. No coding ability, unfortunately.
|
10-08-2014, 08:15 AM | #22 |
Junior Member
Posts: 9
Karma: 10
Join Date: Oct 2014
Location: Los Angeles, California
Device: ASUS ZenPad 10
|
|
10-09-2014, 05:18 AM | #23 |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: kindle
|
Probably a problem with "agreeing to cookies" button
Same problem for me, from France. I don't think it is a redesign of the Economist. Rather, in France, one must "agree and proceed" to use cookies before actually entering the site. This confirmation is probably not necessary in the US, where laws are more lenient about requiring sites to ask users about cookies. So in the US it still works. That's my working hypothesis (could someone confirm that by going on the site in the US? remove the cookie first though). What surprises me though, is that it still works in the Netherlands (see post by "parizer"), where laws are just as strict as in France.
Anyhow, here's what I get in France if I remove the Economist cookie (in a separate frame overlayed on the Economist website): http://consent-pref.truste.com/?type...ste.com/notice I know Python, so I gave it a shot. But I know nothing about Mechanize or automatically navigating the web with Python (and no time/desire to learn it), so I failed. Basically, you need to automatically "click" the "agree and proceed" button, which is somehow generated by javascript on the link I included above (I guess... I really don't have a clue about website design/generation, sorry). I tried to do this by adding a javascript_login(...) function with some form and submit stuff in the Economist recipe, but I gave up. Maybe that isn't the right approach anyway. I hope my aborted attempt provides a good starting point for people who know more about Mechanize and javascript. |
10-09-2014, 06:56 AM | #24 |
creator of calibre
Posts: 44,019
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I doubt it's the cookie acceptance. France is the only country inEuriope where it has been reported, and the cookie acceptance is usually implemented in javascript, so it would have no affect on mechanize, which does not execute javascript.
|
10-09-2014, 08:01 AM | #25 |
Guru
Posts: 735
Karma: 35936
Join Date: Apr 2011
Location: Shrewsury, MA
Device: Lenovo Android Tablet
|
fstulp-
I'm in the US and it works for me as I've noted above. However, I've never been to the economist website, so would not have gotten a cookie or consented to their use, etc. except what Calibre could do. However, I also use a windows app that cleans all cookies and tmp files at boot, so no economist cookie could persist... Thus your hypothesis might be correct, if the site is detecting your origin. |
10-10-2014, 02:11 AM | #26 |
Wizard
Posts: 1,163
Karma: 1404241
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
I did a check from germay. works for me too. I accept the cookie after the download half hour ago this morning. So, for me it seems to work without cookie too.
|
11-06-2014, 05:08 PM | #27 |
Junior Member
Posts: 1
Karma: 10
Join Date: Nov 2014
Device: kindle
|
Hello,
It is indeed related to the cookie acceptance notice. Using wget to get the page http//www.economist.com/printedition without any cookie gives a page that contains: <title>Explicit cookie consent | The Economist</title> However, the same page also contains the following javascript code: Function checkForAcceptance() { if (document.cookie.indexOf('notice_preferences') !== -1) { if (window.location.href.indexOf('explicit-cookie-consent.html') === -1) { window.location.reload(); } else { window.location = '/'; window.location.replace('/'); } } else { setTimeout(checkForAcceptance, 100); } } // Start the watch off. checkForAcceptance(); So... setting the "notice_preferences" cookie should do the trick. Starting from: https://github.com/kovidgoyal/calibr...st_free.recipe 1. Uncomment the lines 61-75 (the get_browser function) 2. Add the following lines after line 63: import cookielib ck = cookielib.Cookie(version=0, name='notice_preferences', value='2:', port=None, port_specified=False, domain='.economist.com', domain_specified=False, domain_initial_dot=True, path='/', path_specified=False, secure=False, expires=None, discard=False, comment=None, comment_url=None, rest={'HttpOnly': None}, rfc2109=False) br.cookiejar.set_cookie(ck) This make the recipe work for me (In France, calibre 2.3.0, Linux). I am not posting this as a patch as I don't know nearly enough about cookies, mechanize and calibre to make it a proper patch. However, since the calibre author has seen this thread, maybe he can provide some advice. Cheers. |
11-06-2014, 10:26 PM | #28 |
creator of calibre
Posts: 44,019
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your patch looks fine, I will add it to the next release.
|
11-07-2014, 03:54 AM | #29 |
Member
Posts: 10
Karma: 10
Join Date: Dec 2011
Device: Kindle
|
Many thanks indeed, MoiMoiMoi. What's strange (for me anyhow, and I don't understand a word of coding) is that it downloaded automatically to my French IP this morning, and I'm still on Calibre 2.3!
|
11-08-2014, 03:46 AM | #30 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Oct 2014
Device: kindle
|
Quote:
* The cookie still needs to be confirmed on the Economist website in France * The MoiMoiMoi patch has not yet been applied (at least on my calibre version: 2.7) * I can also download the Economist from a French IP again! I don't understand how this could work again, apart from some change in cookie acceptance on the website... Anyhow, it works again: Happy reading! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Economist Recipe | Dhruv | Recipes | 5 | 10-10-2014 08:15 PM |
Economist recipe... | RobbieW | Recipes | 2 | 10-03-2013 05:01 PM |
DIE ZEIT Premium recipe doesn't work anymore | Moik | Recipes | 1 | 07-16-2011 01:46 PM |
Economist recipe | jdomingos76 | Recipes | 1 | 03-08-2011 08:33 AM |
Economist Free Recipe | geneaber | Calibre | 10 | 12-31-2009 03:45 PM |