### Install GramAddict with Pip Source: https://github.com/gramaddict/bot/blob/master/README.md Install the GramAddict package using pip. This is the recommended installation method. ```bash pip3 install GramAddict ``` -------------------------------- ### Check GramAddict Installation Source: https://github.com/gramaddict/bot/blob/master/README.md Verify that GramAddict has been installed correctly by checking its version. ```bash gramaddict --version ``` -------------------------------- ### Check Pip Installation Source: https://github.com/gramaddict/bot/blob/master/README.md Ensure that pip3 is installed. If it returns an error, you will need to install it separately. ```bash pip3 -V ``` -------------------------------- ### Clone GramAddict Repository Source: https://github.com/gramaddict/bot/blob/master/README.md Install GramAddict by cloning the git repository. Note that console commands like 'gramaddict init' may not work with this method. ```bash git clone https://github.com/GramAddict/bot.git gramaddict ``` ```bash cd gramaddict ``` ```bash pip3 install -r requirements.txt ``` -------------------------------- ### Add platform-tools to PATH on Linux/macOS Source: https://github.com/gramaddict/bot/wiki/Adding-platform-tools-to-the-PATH-environment-variable Append this line to your ~/.bash_profile to include the platform-tools directory in your PATH. Ensure the path accurately reflects your SDK installation. ```bash export PATH=~/Library/Android/sdk/platform-tools/:$PATH ``` -------------------------------- ### Start GramAddict Bot Source: https://github.com/gramaddict/bot/blob/master/README.md Execute this command to start the GramAddict bot using your configuration file. Ensure your Instagram is set to English. ```bash python3 run.py --config accounts/yourusername/config.yml ``` ```bash gramaddict run --config accounts/yourusername/config.yml ``` -------------------------------- ### Upload Distribution to PyPI Source: https://github.com/gramaddict/bot/blob/master/DEPLOYMENT.MD Uploads the built distribution files to the Python Package Index (PyPI). Requires twine to be installed. ```bash twine upload dist/* ``` -------------------------------- ### Check Python Version Source: https://github.com/gramaddict/bot/blob/master/README.md Verify your Python installation version. Use 'python -V', 'python3 -V', or 'py -V' depending on your system and Python installation. ```bash python -V ``` ```bash python3 -V ``` ```bash py -V ``` -------------------------------- ### Check ADB Version Source: https://github.com/gramaddict/bot/blob/master/README.md Verify that ADB is installed and accessible by checking its version. This confirms that the platform-tools path has been correctly added to your system's PATH environment variable. ```bash adb version ``` -------------------------------- ### Check ADB Version Source: https://github.com/gramaddict/bot/wiki/Problems-with-adb-connection:-what-to-do Determine the installed version of ADB. If you are experiencing issues, ensure you have a recent version, as older versions may have compatibility problems. ```bash adb --version ``` -------------------------------- ### Initialize GramAddict Bot Source: https://github.com/gramaddict/bot/blob/master/README.md Initialize the GramAddict bot for a specific Instagram account. This command creates necessary configuration files. Ensure you have installed the bot via pip. ```bash gramaddict init your_ig_account_name_here ``` -------------------------------- ### Commit Message Example Source: https://github.com/gramaddict/bot/blob/master/CONTRIBUTING.md Commit messages should follow a specific format, especially when addressing a GitHub issue. End the first line with the issue number prefixed by '#'. ```git :cat2: Fixing an encoding bug with the logging system #31 - Without utf-8 encoding, certain logs cannot be written and will cause an exception ``` -------------------------------- ### Initialize uiautomator2 Source: https://github.com/gramaddict/bot/blob/master/README.md Run this command to initialize the uiautomator2 framework, which is required for the bot to interact with the device's UI. ```bash uiautomator2 init ``` -------------------------------- ### Build Source Distribution Source: https://github.com/gramaddict/bot/blob/master/DEPLOYMENT.MD Creates a source distribution archive for the project. Requires Python and setup.py to be present. ```python python3 setup.py sdist ``` -------------------------------- ### Create and Activate Virtual Environment Source: https://github.com/gramaddict/bot/blob/master/README.md Create a virtual environment named '.venv' for isolating Python packages. Activation commands differ for Linux/macOS and Windows. ```bash python3 -m venv .venv ``` ```bash source .venv/bin/activate ``` ```bash .venv\Scripts\activate.bat ``` ```bash .venv\Scripts\activate.ps1 ``` -------------------------------- ### Run GramAddict on a Specific Device Source: https://github.com/gramaddict/bot/wiki/Running-script-on-multiple-devices-at-once After identifying your device, open a new terminal, activate the virtual environment, and run the script, specifying the device identifier. This command allows targeting a particular device for script execution. ```bash pipenv shell python run.py --device ...some other args... ``` -------------------------------- ### Enable ADB TCP/IP Mode Source: https://github.com/gramaddict/bot/wiki/Connect-Android-phone(s)-via-WiFi Run this command once to enable ADB over TCP/IP on your device. Ensure your device is connected via USB initially. ```bash adb tcpip 5555 ``` -------------------------------- ### Add platform-tools to PATH on Windows Source: https://github.com/gramaddict/bot/wiki/Adding-platform-tools-to-the-PATH-environment-variable Insert this path into the 'Path' system variable in the Environment Variables settings. Remember to add a semicolon if the existing path does not end with one. ```batch C:\Users\USERNAME\AppData\Local\Android\sdk\platform-tools ``` -------------------------------- ### List Connected Devices with ADB Source: https://github.com/gramaddict/bot/wiki/Running-script-on-multiple-devices-at-once Use this command to find the unique identifiers for all connected devices. These identifiers are required to run the script on specific devices. ```bash adb devices ``` -------------------------------- ### Return to USB Mode Source: https://github.com/gramaddict/bot/wiki/Connect-Android-phone(s)-via-WiFi Use this command to switch ADB back to USB mode. This is necessary when reconnecting a device that was previously set to TCP/IP mode, especially when connecting multiple devices sequentially. ```bash adb usb ``` -------------------------------- ### Create a Topic Branch Source: https://github.com/gramaddict/bot/blob/master/CONTRIBUTING.md To create a new feature branch based on the 'develop' branch, use this Git command. Avoid working directly on the 'develop' branch. ```git git checkout -b feature-mybranch develop ``` -------------------------------- ### Remove Distribution Data Source: https://github.com/gramaddict/bot/blob/master/DEPLOYMENT.MD Cleans up old distribution files before building a new release. Ensure you are in the project root. ```bash rm -rf dist/ gramaddict.egg-info/ ``` -------------------------------- ### Connect to Device via IP Address Source: https://github.com/gramaddict/bot/wiki/Connect-Android-phone(s)-via-WiFi Connect to your Android device wirelessly using its IP address. You can find the IP address in your WiFi network settings. This command is run after enabling TCP/IP mode. ```bash adb connect ``` -------------------------------- ### Kill ADB Server Source: https://github.com/gramaddict/bot/wiki/Connect-Android-phone(s)-via-WiFi This command forcefully stops the ADB server process. It's a common troubleshooting step when connections fail, requiring the server to restart. ```bash adb kill-server ``` -------------------------------- ### Disconnect ADB Connection Source: https://github.com/gramaddict/bot/wiki/Connect-Android-phone(s)-via-WiFi Use this command to disconnect the current ADB session. It's often used in troubleshooting before attempting to reconnect. ```bash adb disconnect ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.