Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k 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 Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.7k users

...