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

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?

Thanks
Reply
#2
Perhaps one of these packages can help: https://pypi.org/search/?q=captcha
ConsistentlyInconsistent likes this post
Reply


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

Forum Jump:

User Panel Messages

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