Coder Social home page Coder Social logo

subhamtyagi / loco-hack Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 8.0 662 KB

Script for finding answer in loco app(Trivia Game), Only for Educational purpose

License: MIT License

Python 100.00%
answers game hack hacking loco-answers loco-hack loco-hack-script loco-haking loco-robot loco-script money python script tesseract trivia webcrawler win-loco-money

loco-hack's People

Contributors

subhamtyagi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

loco-hack's Issues

System can not find the file specified at line 216

Reading screenTraceback (most recent call last):
File "bot.py", line 306, in
get_points_live(True)
File "bot.py", line 280, in get_points_live
question, options = parse_question(demo)
File "bot.py", line 238, in parse_question
text = take_screenshot_and_get_text(demo)
File "bot.py", line 216, in take_screenshot_and_get_text
text = pytesseract.image_to_string(Image.open(filename))
File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 193, in image_to_string
return run_and_get_output(image, 'txt', lang, config, nice)
File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 140, in run_and_get_output
run_tesseract(**kwargs)
File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 111, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 394, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 644, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

- Reading screenTraceback (most recent call last):TypeError: Unsupported image object

  • Reading screenTraceback (most recent call last):
    File "bot.py", line 251, in
    get_points_live(True)
    File "bot.py", line 225, in get_points_live
    \ Reading screenquestion, options = take_screenshot_and_get_text(demo)
    File "bot.py", line 194, in take_screenshot_and_get_text
    question = pytesseract.image_to_string(Image.open('quest.png'))
    File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 294, in
    image_to_string
    return run_and_get_output(*args)
    File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 192, in
    run_and_get_output
    temp_name, input_filename = save_image(image)
    File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 107, in
    save_image
    image = prepare(image)
    File "C:\Python27\lib\site-packages\pytesseract\pytesseract.py", line 99, in p
    repare
    raise TypeError('Unsupported image object')
    TypeError: Unsupported image object

please help me solve this problem why show error
please Reply

not working

please write a tutorial about this

i got urllib error

Not support for mobile

Bhuth se mobile me ye app work nhi Kar rhi h oppo vivo v5 Samsung z7 ,z5 Motorola or bhe mobile h please SOLOTON please help me

Screenshot issue

HELLO DUDE PLEASE TELL THAT HOW TO SETUP SCREENSHOT SIZE IN SCRIPT PL. IT IS BEEN TOO CONFUSING

Doesn't work , Creates a lot of errors

get_screen_shot(demo)
�[0m�[0m�[0m�[0m�[0m�[0m File "C:\Users\Anmol Agarwal\Desktop\bot2.py", line 73, in get_screen_shot
i = Image.open(screenfile)
�[0m�[0m�[0m�[0m�[0m�[0m File "F:\Program\Python36\lib\site-packages\PIL\Image.py", line 2548, in open
fp = builtins.open(filename, "rb")
�[0m�[0m�[0m�[0m�[0m�[0mFileNotFoundError: [Errno 2] No such file or directory: 'screendemo.png'
�[0m�[0m�[0m�[0m�[0m�[0m

ERROR IN SCREEN.PNG

hey subham as i opening bot.py and running it in live it is showing me a error:

Press l for live game, s to run against sample questions or q for quit:
l
[ ==] Reading screenTraceback (most recent call last):
File "bot.py", line 249, in
get_points_live(False)
File "bot.py", line 225, in get_points_live
question, options = take_screenshot_and_get_text(demo)
File "bot.py", line 163, in take_screenshot_and_get_text
i = Image.open(screenshot_file)
File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2622, in open
% (filename if filename else fp))
IOError: cannot identify image file 'screen.png'

i'm running yr script in kali linux 2018 please suggest something

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.