Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.5k views
in Technique[技术] by (71.8m points)

beautifulsoup - Python - How To Post Captcha code with requests?

I'm trying to develop a python script, which scrapes information on Amazon.

So I'm looking for an Amazon product: https://www.amazon.fr/dp/B07Y7D13DD

And then I have this page with a captha: https://www.amazon.com/errors/validateCaptcha

I succeed in extracting the image of the captcha:

images =soup.find('div',{"class":"a-row a-text-center"})
captcha_image = (images.find('img').attrs['src'])

Then I succeed in getting the captcha's code:

captcha = AmazonCaptcha.fromlink(captcha_image)
solution = captcha.solve()

Now how can I post the code, to solve the captcha?

Thank you, have a good day.

question from:https://stackoverflow.com/questions/65645081/python-how-to-post-captcha-code-with-requests

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...