Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] - Exception occurred u'href' #51

Closed
ankur-p opened this issue May 25, 2017 · 20 comments
Closed

[ERROR] - Exception occurred u'href' #51

ankur-p opened this issue May 25, 2017 · 20 comments

Comments

@ankur-p
Copy link

ankur-p commented May 25, 2017

This error started happening today when trying to grab the current ebook. Checked the site, and it seems they've implemented captcha. Not sure how long they've had this, but I think it's the first time I've seen it. Guessing the captcha is what's causing the error. Downloading existing books on my account still seems to work fine.

@luk6xff
Copy link
Owner

luk6xff commented May 25, 2017

yeah, so now it seems like we have to crack the google recaptcha which they used :D

@ankur-p
Copy link
Author

ankur-p commented May 25, 2017

haha yeah, I wasn't exactly expecting a "fix" for this one. just thought I'd let you know about it. ;)

@yodous
Copy link

yodous commented May 25, 2017

Eh. Does it means, that all packtpub scripts can now be trashed? :(

@jankoEM
Copy link

jankoEM commented May 25, 2017 via email

@Naoray
Copy link

Naoray commented May 26, 2017

Seems like google has patched his captcha methods recently. We could've cracked it a few months ago. For the ones who are curious how it worked: https://east-ee.com/2017/02/28/rebreakcaptcha-breaking-googles-recaptcha-v2-using-google/

EDIT: just found another blog post about breaking the captcha with machine learning https://franciskim.co/cracking-googles-recaptcha-machine-learning/, so there might be a way... anyone having experience with image recognition? :-P

@ad-m
Copy link
Contributor

ad-m commented May 26, 2017

It is possible to use antigate.com or similar. For $ 1 there are 1.5 k images, which is enough for years.

@ubaldop
Copy link

ubaldop commented May 26, 2017

:(

@jankoEM
Copy link

jankoEM commented May 26, 2017

'-dc' is only parameter that provides some sort of automation now (together with manually clicked captcha) ?
No mater what comes next, thank you Łukasz for a great tool! I enjoyed the couple months of using it 👍

@greggmarshall
Copy link

I wonder if they got enough complaints about it PacktPub would remove it?

@ubaldop
Copy link

ubaldop commented May 26, 2017 via email

@ankur-p
Copy link
Author

ankur-p commented May 26, 2017

-da -f was a life-saver for me (big thanks to the devs, btw!), and those flags still seem to work fine. So far I'm only seeing an issue with -g and its derivatives, but grabbing the file manually then downloading via script works. It's a shame they've blocked the script access to grab. Here's to hoping they don't follow-up by blocking all script downloads, too.

EDIT: Just saw the edit regarding the machine learning crack. good luck with that! I would love to help, but unfortunately I have no experience with image recognition.

@wordsalad
Copy link

EDIT: Just saw the edit regarding the machine learning crack. good luck with that! I would love to help, but unfortunately I have no experience with image recognition.

It's simple: is hot dog or is not hot dog.

@djvdorp
Copy link
Contributor

djvdorp commented Jun 6, 2017

Personally I do not see any value on having a captcha there, besides their will to stop script accesses. At least, we could still use a script to notify people by e-mail about book of the day, since to scrap the title of the page does not need a login.

+1 for this, only noticed today that they implemented a CAPTCHA and thus broke the -g of the script days ago unfortunately, so I missed some of the current promo since I often forget checking it myself daily.

@Forge64
Copy link

Forge64 commented Jun 8, 2017

I got bitten by this too, missed some books, and now have to manually go to their site every morning. Greatly reduced value for me, and reduced eyeball time on their site, too. I used to check out my book collection periodically and head to their site to look for complimentary titles. Now I forget to grab today's book in time, and get discouraged, don't bother doing anything with their site. Big lose.

@pybites
Copy link

pybites commented Jun 9, 2017

Maybe try this? https://2captcha.com/recaptchav2_eng_instruction - if anybody solves it please let us know, we have a packt ebook code challenge this week: https://pybit.es/codechallenge22.html

@ChuckWoodraska
Copy link

I don't think the captcha is stopping this. It looks like there is no href to grab anymore. I just get the claim url from the form action and it seems to work. I'll put a pull request up with my change.

ChuckWoodraska pushed a commit to ChuckWoodraska/Packt-Publishing-Free-Learning that referenced this issue Jul 28, 2017
@jolny
Copy link

jolny commented Jul 29, 2017

@ChuckWoodraska I tried your code but it gives me:
[ERROR] - Exception occurred eBook: Unity_Shaders_and_Effects_Cookbook has not been grabbed!, does this promo exist yet? visit the page and check!

(I logged in successfully)

@ChuckWoodraska
Copy link

@jolny ya it looks like I spoke too soon. Thought it was working but after testing some more it seems like it isn't.

@luk6xff
Copy link
Owner

luk6xff commented Aug 22, 2017

Solved by adding reCaptcha solver from https://anti-captcha.com at #56

@luk6xff luk6xff closed this as completed Aug 22, 2017
@Naoray
Copy link

Naoray commented Aug 23, 2017

@igbt6 thanks for this! works as good as before the captcha integration :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests