[GH-ISSUE #5] Quickstart #465

Closed
opened 2026-03-13 21:30:27 +03:00 by kerem · 12 comments
Owner

Originally created by @xerZV on GitHub (Jun 6, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/5

Could you please provide some quickstart example?
Where to put acc and pass?

Originally created by @xerZV on GitHub (Jun 6, 2020). Original GitHub issue: https://github.com/alexal1/Insomniac/issues/5 Could you please provide some quickstart example? Where to put acc and pass?
kerem closed this issue 2026-03-13 21:30:32 +03:00
Author
Owner

@alexal1 commented on GitHub (Jun 6, 2020):

There's no need in acc and pass. No need in quickstart.py too.

This script simply sends touch events to your phone/tablet, where Instagram app is running. It presses buttons just like you would. So, instead of providing acc and pass just connect device to your computer.

In InstaPy you launch quickstart.py, here you launch insomniac.py. You can find detailed information on how to launch on the main page.

<!-- gh-comment-id:640091968 --> @alexal1 commented on GitHub (Jun 6, 2020): There's no need in acc and pass. No need in `quickstart.py` too. This script simply sends touch events to your phone/tablet, where Instagram app is running. It presses buttons just like you would. So, instead of providing acc and pass just connect device to your computer. In InstaPy you launch `quickstart.py`, here you launch `insomniac.py`. You can find detailed information on how to launch on the main page.
Author
Owner

@xerZV commented on GitHub (Jun 6, 2020):

Ah, I see. Will give a try. Thank you

<!-- gh-comment-id:640097143 --> @xerZV commented on GitHub (Jun 6, 2020): Ah, I see. Will give a try. Thank you
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

Running on raspberry pi 4 and getting this error:

pi@:~/Library/Android/sdk/platform-tools $ ./adb devices
bash: ./adb: cannot execute binary file: Exec format error

I guess Google has dropped support for the 32-bit version of the Android SDK....
Any suggestions?

<!-- gh-comment-id:640200869 --> @xerZV commented on GitHub (Jun 7, 2020): Running on raspberry pi 4 and getting this error: ``` pi@:~/Library/Android/sdk/platform-tools $ ./adb devices bash: ./adb: cannot execute binary file: Exec format error ``` I guess Google has dropped support for the 32-bit version of the Android SDK.... Any suggestions?
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

Nvm, I got it.
https://askubuntu.com/questions/710426/android-sdk-on-ubuntu-32bit

<!-- gh-comment-id:640202482 --> @xerZV commented on GitHub (Jun 7, 2020): Nvm, I got it. `https://askubuntu.com/questions/710426/android-sdk-on-ubuntu-32bit`
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

@alexal1
image

I created tmp.py

from uiautomator import device as d

d.screen.on()
d(text="Clock").click()

And then
python tmp.py and that opens the Clock application.
So uiautomator is working fine

<!-- gh-comment-id:640203151 --> @xerZV commented on GitHub (Jun 7, 2020): @alexal1 ![image](https://user-images.githubusercontent.com/23699044/83967577-97fd2a80-a8cb-11ea-9c29-24cfc562982c.png) I created `tmp.py` ``` from uiautomator import device as d d.screen.on() d(text="Clock").click() ``` And then `python tmp.py` and that opens the Clock application. So uiautomator is working fine
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

I changed this
import uiautomator
with this
from uiautomator import device as d

Then commented line #33
#device = uiautomator.device
and renamed device to d in your script.

Now I have a progress but still getting errors:
image

<!-- gh-comment-id:640207180 --> @xerZV commented on GitHub (Jun 7, 2020): I changed this `import uiautomator` with this `from uiautomator import device as d` Then commented line #33 `#device = uiautomator.device` and renamed `device` to `d` in your script. Now I have a progress but still getting errors: ![image](https://user-images.githubusercontent.com/23699044/83968126-b2390780-a8cf-11ea-930c-c5c58f3eef70.png)
Author
Owner

@alexal1 commented on GitHub (Jun 7, 2020):

Pls check python --version
My output is Python 2.7.16. For now the script works on Python 2.
I think you've installed uiautomator for Python 3 only.

<!-- gh-comment-id:640226460 --> @alexal1 commented on GitHub (Jun 7, 2020): Pls check `python --version` My output is `Python 2.7.16`. For now the script works on Python 2. I think you've installed `uiautomator` for Python 3 only.
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

image
So how can I install uiautomator for python 2?

<!-- gh-comment-id:640242681 --> @xerZV commented on GitHub (Jun 7, 2020): ![image](https://user-images.githubusercontent.com/23699044/83974117-86c81400-a8f3-11ea-84ee-377191e5f1ba.png) So how can I install uiautomator for python 2?
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

Oh, my pip was pointing to python 3 instead of python 2 so I had to use specifically pip2 install uiautomator

<!-- gh-comment-id:640244404 --> @xerZV commented on GitHub (Jun 7, 2020): Oh, my `pip` was pointing to `python 3` instead of `python 2` so I had to use specifically `pip2 install uiautomator`
Author
Owner

@alexal1 commented on GitHub (Jun 7, 2020):

@xerZV since of v1.2.3 the script works on Python 3. I did the migration today for everybody's convenience.

<!-- gh-comment-id:640275497 --> @alexal1 commented on GitHub (Jun 7, 2020): @xerZV since of `v1.2.3` the script works on Python 3. I did the migration today for everybody's convenience.
Author
Owner

@xerZV commented on GitHub (Jun 7, 2020):

@alexal1 Nice. I tried it today and it works like a charm! I'm not a python dev but looking forward to learn it so maybe I will fork it and try to improve it somehow.

<!-- gh-comment-id:640276021 --> @xerZV commented on GitHub (Jun 7, 2020): @alexal1 Nice. I tried it today and it works like a charm! I'm not a python dev but looking forward to learn it so maybe I will fork it and try to improve it somehow.
Author
Owner

@alexal1 commented on GitHub (Jun 7, 2020):

@xerZV glad to hear that, feel free to make PRs too :)

<!-- gh-comment-id:640276259 --> @alexal1 commented on GitHub (Jun 7, 2020): @xerZV glad to hear that, feel free to make PRs too :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Insomniac#465
No description provided.