tg-nearby Trilateration of nearby Telegram users as described in my corresponding article.

Overview

tg-nearby

Trilateration of nearby Telegram users as described in my corresponding article.

Setup

If you want to toy with the code in this repository and collect some location data with Telegram yourself, please keep in mind that there is a high likelihood that something will break when the Telegram Android app updates. Familiarize yourself with the following steps, make sure you know what you're doing and be prepared to troubleshoot problems when they arise.

  1. Clone the Telegram Android app source code from the official repository and follow the outlined steps to creating your own development build.
  2. Apply the PeopleNearbyActivity patch to the Java class of the same name.
  3. Install all Python dependencies using python -m pip install -r requirements.txt. It is recommended to create a separate virutal environment in the root of this repository first.

Usage

Note: You will need a working Telegram account. When navigating to the "People Nearby" menu entry on your dev build, Telegram will ask you to share your location. This is necessary to be able to get a list of nearby users. This won't automatically show your presence to other users in proximity.

  1. Install the patched Telegram Android app onto an Android device. Navigate to the "People Nearby" menu entry in the app's sidebar.
  2. Keep the "People Nearby" screen open and active for as long as you wish to collect data. Walk around to achieve better location estimates.
  3. Copy the corresponding log files from your device. They will be located in a directory called logs in the app's data directory, either on external or internal storage. You will need to copy the files either through adb or with Android Studio's integrated device file explorer.
  4. Feed the logs into a SQLite database. Navigate to the root of this repository and execute python ingest.py my_database.sqlite logs/my_awesome_log.txt. You can append multiple logs to a single database by simply changing the log file path argument.
  5. Run the web interface. Navigate to the server directory of this repository and execute python server.py my_database.sqlite.
Owner
Maximilian Jugl
Obsessed with owls and code
Maximilian Jugl
A simple tool made in Python language

Simple tool Uma simples ferramenta feita 100% em linguagem Python ๐Ÿ’ป Requisitos: Python3 instalado em seu dispositivo Clonagem e acesso ๐Ÿ“ณ git clone h

josh washington 4 Dec 07, 2021
Just another sentiment wrapper.

sentimany Just a simple sentiment tool. It just grabs a set of pre-made sentiment models that you can quickly use to attach sentiment scores to text.

vincent d warmerdam 15 Dec 27, 2022
run-js Goal: The Easiest Way to Run JavaScript in Python

run-js Goal: The Easiest Way to Run JavaScript in Python features Stateless Async JS Functions No Intermediary Files Functional Programming CommonJS a

Daniel J. Dufour 9 Aug 16, 2022
Wordle-solve - Attempting to solve wordle

Wordle Solver Run with python wordle_beater.py. This hardmode wordle solver take

Tom Lockwood 42 Oct 11, 2022
A Klipper plugin for accurate Z homing

Stable Z Homing for Klipper A Klipper plugin for accurate Z homing This plugin provides a new G-code command, STABLE_Z_HOME, which homes Z repeatedly

Matthew Lloyd 24 Dec 28, 2022
Generalise Prometheus metrics. takes out server specific, replaces variables and such.

Generalise Prometheus metrics. takes out server specific, replaces variables and such. makes it easier to copy from Prometheus console straight to Grafana.

ziv 5 Mar 28, 2022
A Python 3 client for the beanstalkd work queue

Greenstalk Greenstalk is a small and unopinionated Python client library for communicating with the beanstalkd work queue. The API provided mostly map

Justin Mayhew 67 Dec 08, 2022
script buat mengcrack

setan script buat mengcrack cara install $ pkg install upgrade && pkg update $ pkg install python $ pkg install git $ pip install requests $ pip insta

1 Nov 03, 2021
A minimalist production ready plugin system

pluggy - A minimalist production ready plugin system This is the core framework used by the pytest, tox, and devpi projects. Please read the docs to l

pytest-dev 876 Jan 05, 2023
Cairo-integer-types - A library for bitwise integer types (e.g. int64 or uint32) in Cairo, with a test suite

The Cairo bitwise integer library (cairo-bitwise-int v0.1.1) The Cairo smart tes

27 Sep 23, 2022
A guy with a lot of useful things to do when doing AtCoder in Python

atcoder_python_env Python ใง AtCoder ใ‚’ใ‚„ใ‚‹ใจใใซไพฟๅˆฉใช่ซธใ€…ใ‚’็”จๆ„ใ—ใŸใ‚„ใค ใ‚ณใƒณใƒ†ใ‚นใƒˆ็”จใƒ•ใ‚ฉใƒซใƒ€ใฎไฝœๆˆ ใ‚ปใƒƒใƒˆใ‚ขใƒƒใƒ— ่‡ชๅ‹•ใƒ†ใ‚น

2 Dec 28, 2021
Islam - This is a simple python script.In this script I have written all the suras of Al Quran. As a result, by using this script, you can know the number of any sura at the moment.

Introduction: If you want to know sura number of al quran by just typing the name of sura than you can use this script. Usage in termux: $ pkg install

Fazle Rabbi 1 Jan 02, 2022
Manjaro CN Repository

Manjaro CN Repository Automatically built packages based on archlinuxcn/repo and manjarocn/docker. Install Add manjarocn to /etc/pacman.conf: Please m

Manjaro CN 28 Jun 26, 2022
Check COVID locations of interest against Google location history

Location of Interest Checker Script to compare COVID locations of interest to Google location history. The script produces a map plot (as shown below)

9 Mar 30, 2022
This library is an abstraction for Splunk-related development, maintenance, or migration operations

This library is an abstraction for Splunk-related development, maintenance, or migration operations. It provides a single CLI or SDK to conveniently perform various operations such as managing a loca

NEXTPART 6 Dec 21, 2022
JPMC Virtual Experience

This repository contains the submitted patch files along with raw files of the various tasks assigned by JPMorgan Chase & Co. through its Software Engineering Virtual Experience Program on Forage (fo

Vardhini K 1 Dec 05, 2021
Manually Install Python 2.7 pip without any problem !

Python2.7_install_pip Manually Install Python 2.7 pip without any problem ! Download installPip.py to your system and Run the code using this Command

Ali Jafari 1 Dec 09, 2021
A general illumination correction method for optical microscopy.

CIDRE About CIDRE is a retrospective illumination correction method for optical microscopy. It is designed to correct collections of images by buildin

Kevin Smith 31 Sep 07, 2022
API moment - LussovAPI

LussovAPI TL;DR: py API container, pip install -r requirements.txt, example, main configuration Long version: Install Dependancies Download file requi

William Pedersen 1 Nov 30, 2021
Integration between the awesome window manager and the firefox web browser.

Integration between the awesome window manager and the firefox web browser.

contribuewwt 3 Feb 02, 2022