Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Taking screenshot

I'm very very new to python but I've been building my own automated bot for a html game.
There's part of the game that you need to complete an anticaptcha to send in game money from one account to another.
I don't have an OCR that will work with the anticaptcha so I'm using the means of taking a screenshot to then have it resolved.
The issue is with the anticaptcha is that you can't right click and save it as the anti capture changes once you try this.
Also the same if you open it in a new tab,hence why taking the screenshot.
I use the script on a vps, however when I log out of the vps the screen change size etc and the screenshot will be taking images of random parts of the screen.

Is there a way that you can code into python that it will only take a screenshot of the selected xpath which will be the anticaptcha. So the size of the browser doesn't matter?

Perhaps one of these packages can help:
ConsistentlyInconsistent likes this post

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask Can't Save Screenshot to Postgres Db firebird 3 1,965 Sep-21-2020, 09:22 PM
Last Post: firebird
  Store Screenshot Selenium + MongoDB Nuwan16 9 2,856 Aug-18-2020, 03:57 AM
Last Post: ndc85430
  Screenshot web page ! ABVSVL 3 2,918 Jul-11-2020, 01:39 PM
Last Post: snippsat
  screenshot arezoo 3 1,961 Apr-11-2020, 10:22 AM
Last Post: buran
  selenium screenshot hai001 18 12,698 Feb-25-2017, 06:22 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020