A
A
Artur Kudashev2019-02-16 00:19:47
Python
Artur Kudashev, 2019-02-16 00:19:47

How to get a captcha?

Hello, I can't get my idea to work. The program takes a screenshot of the site
Here it is:
5c672bf435973208602281.png
Next, it should find the captcha on the screen.
Like this :
5c672ccdb49d2220974516.png
How to do it? I have an assumption that you need to search by background, since it is the same for these captchas. I've never done this before, so I thought I'd ask. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Pavel K, 2019-02-16
@PavelK

Isn't it easier to find the necessary element through DOM parsing instead of a screenshot and take the finished image?

O
Oksana ..., 2019-02-16
@deniz1983

Why take a screenshot to look for a picture in it? You make a simple parser (the same beautifulsoup will do) - go to the site, search for an image in the DOM, find its src, save the image to your desired folder.

P
pcdesign, 2019-03-23
@pcdesign

It uses
https://github.com/yasirmturk/simple-php-captcha
Here is a demo version
https://labs.abautifulsite.net/simple-php-captcha/
I would collect it locally. Launched.
And studied its code and settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question