Skip to content

Latest commit

 

History

History
97 lines (65 loc) · 4.01 KB

README.md

File metadata and controls

97 lines (65 loc) · 4.01 KB

Tapas Ink Collector

GitHub Release License

A simple python script that uses adb to open tapas app, watch video ads and collect the ink reward for you. Then rinse and repeat.

disclaimer: this is by no means an efficient or a good way for farming ink. Tapas pricing is reasonable that earning 10 ink per min (maybe even more than a min) is simply not worth it. I merely did this because I wanted to learn how to use ADB. The script is useful if you are short a hundred or so ink.

Notes

  • The values in the config file were tested on my Samsung Galaxy J7 Pro which has a 1920x1080 display
    • if your screen is different, The script might fail and in that case you need to change the config. Checkout the Configuring section for more details.
  • If you live in a region with little to no ads available on Tapas. I recommended using cloudflare. The Warp feature works as a VPN.

Features

  1. Automatically launches the app
  2. Navigates to the free ink menu
  3. Taps the watch video button
  4. If there's no offers available it will wait for them to be available
  5. Waits for a set amount then goes to the previous screen
  6. Claims rewards
  7. If an hour pasted since starting or the max amount of ads watched. It will restart the app
  8. Repeats steps starting from step #3

Prerequisites

You have to do the following before running the script:

  • Connect your phone to your computer using USB.

  • Enable USB debugging

  • In the same settings menu, enable Stay Awake (or the screen will shut down while the script waits for the ads).

    • you can use Screen Copy to turn off your display

      scrcpy -S --max-fps 1
  • Install python dependencies.

    py -m venv venv
    ./venv/Scripts/python -m pip install -r requirements.txt

Running the script

./venv/Scripts/python -m tapas_ink_collector

Configuring

A Config.json file is available at the root directory with the configuration to run the script. the following is the meaning of each field.

  • adb: adb host & port. you probably don't need to change this.

  • appName: tapas app name. used to launch the app.

    • you can get it through the following command

      adb shell pm list packages | grep tapas
  • colors*: the rgb of certain parts of the UI the scripts checks for.

  • locations*: the x & y of certain parts of the UI the script interacts with. You can get it either by

    • taking a screenshot of your phone and using paint (or any similar software) and reading the coordinates in the bottom left of paint.
    • or by enabling Pointer Location in Developer options in android
  • adSleepAmount: time in seconds to wait for the ad to finish

  • maxTimes: number of ads that can be watched per hour.

*: check out ConfigMeaning.md to find out what each value means.

Authors

See also the list of contributors who participated in this project and their work in CONTRIBUTORS.md.

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments