Giter VIP home page Giter VIP logo

instappium's Introduction

Welcome to Instappium

This project is highly inspired and takes some of the code back from instapy (https://github.com/timgrossmann/InstaPy) originally developped by Tim Grossmann and community

The goal of this project is to try to hide the automation behind a legitimate phone app, so it is easier to bypass any "easy" detection algorithm that may be done. It is also an attempt at not having a very detailed script that describe the actions to be done. Ideally we would like to let Instappium choose the actions it wants to do in a random manner and using the exact same flow as the app interface can provide so it is more natural.

Important note: the project is in heavy development at the moment so it is probably not fully usable or will crash a lot. There is no need to open issues/report, what we need is your help in fixing the code. So fork the repo and propose a pull request that fix it. (https://guides.github.com/activities/forking/)

Installation

You will need:

  1. Appium
  2. an Android simulated device (for example using android studio and creating a device)
  3. the app, you can find it on apkpure

Qwick How to

  1. Download and install appium

  2. Download and install Andriod Studio

  3. Download the apk

    Note: make sure to map the correct apk variant with the CPU/ABI flavor of your android device

  4. Start a new Android Studio (AS) project:

    • Launch AS
    • Click "Configure -> AVD Manager"
  5. Create a new emulator in the AVD manager by Click "Create Virtual Device" and follow it steps

  6. Go to the android studio terminal (bottom of the screen): cd C:\Users\YOUR NAME HERE\AppData\Local\Android\Sdk\platform-tools or whatever path you have to the platform-tools folder

  7. Install the apk: adb install [INSERT THE PATH TO YOUR DOWNLOADED INSTAGRAM APK]

  8. Add the ANDROID_HOME variable to your environment variables with path being the path to [FULL PATH HERE]/Sdk/ mentioned in earlier steps

For Ubuntu: Dont use the symbol '~' in the path, because the appium parser doesnt seem to recognize it.

  1. Start your appium server with default settings

  2. Launch the emulator

  3. Give it time for the emulator to setup everything (AS will stop showing messages in the bottom)

  4. Make sure you enter the right device name on your test file (You can find it by running adb devices in the android terminal) along with your instagram credentials

  5. Test your instappium

import instappium

session = instappium.InstAppium(username='xxx', password='yyy', device='emulator-5554', show_logs=True)

session._webdriver.go_search('whoever you want', 'accounts')

# doing one action using the FSM
from instappium.engine import FSMSession
fsm = FSMSession(session._webdriver)

# should respond idle
fsm.state

# let's go to the home page
fsm.go_homepage()

instappium's People

Contributors

christophe-duc avatar clercrobin avatar

Stargazers

 avatar

Watchers

 avatar

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.