Home > front end >  Using Selenium can directly download images, rather than using urllib re-open imgUrl?
Using Selenium can directly download images, rather than using urllib re-open imgUrl?

Time:03-08

After using selenium get img - url, are generally use urlopen (). The data download images (), at this time of the key is to use urllib to open a webpage, some sites will be redirected, and so is there a built-in function selenium can directly download the pictures?

CodePudding user response:

The elder brothers I ask with you, your problem solved?
For dynamic image authentication code, data access, it is not what I want again, use the screenshot is not clear, a lot of pictures in HTML is compressed size is smaller than the original size, screenshot is not very clear, can't handle it? In the to find the answer, I also found the I'll post here, if you had settled, and don't forget to answer thanks

CodePudding user response:

I was getting less than consistent captcha question puzzled for a long time, for bosses to solve!!!!!!!!!!

CodePudding user response:

Using selenium to download pictures, don't use other tools such as requests and urllib

You can look at this,
  • Related