Skip to content

Yandex Go - rideshairing Android app price scraper.

License

Notifications You must be signed in to change notification settings

arifgarayev/alchemylb

Repository files navigation

Yandex Go Android Price Scraper

GitHub license LinkedIn

Disclaimer: This project is for educational purposes only. Please respect GDPR regulations, in particular, Article 8 of the Charter of Fundamental Rights of the European Union.


Overview

This Python, Appium, and ADB project is designed to scrape pricing data from the Yandex Go Android ridesharing application. It allows you to extract ride prices for various cities and route ranges. Simply provide the addresses in the configuration file, and the bot will take care of the rest.

The project strictly follows SOLID software development principles. Page Object Model (POM) design pattern was mostly used.


Configuration

To set up and configure the scraper, follow these steps:

  1. Google Sheets Integration: Edit /config/gsheetserviceacc/ServiceAccountToken.json to integrate with Google Sheets.

  2. Route Configuration: Edit /config/routes/*.json to define proper route origin-destination pairs as input to the app.

  3. Appium Configuration: Edit /config/sys/driver.json to configure Appium baed desired capabilities, host:port settings, Android package name, Google Spreadsheet ID, Google Sheet name, and the path to an internal local database for tracking the process's last state.


Usage

You can run this scraper on an Android virtual device or on any Android device with USB debugging enabled.

Execution

Use main.py as the entry point for the data scraper bot. Pass a command-line argument to select a city route configuration.

python3 main.py <arg -t=TBLISI / -b=BATUMI / -k=KUTAISI>

Continuous Execution

If you want to run the Python script infinitely, use infinite.py with the same command-line arguments.


Installation

  1. Clone this repository to your local machine.
  2. Install JDK, Android Studio (Android API) - More about environment setting
  3. Install the specific APK version of the Yandex Go Android application to your Android OS device from the /apk folder.

License

This project is licensed under the MIT License.


Feel free to contribute to the project, report issues, or suggest improvements. Happy scraping! 🚀

About

Yandex Go - rideshairing Android app price scraper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published