Skip to main content

This is a python package for scraping Telegram data based on geolocation.

Reason this release was yanked:

bug

Project description

telegeo

This is a python package for scraping Telegram:iphone: based on geolocation:earth_asia:.

:loudspeaker:Check this package on PyPI

Installing

pip install telegeo

Dependencies:

(If nothing odd happens, users will install all the following dependencies of telegeo automatically after running "pip install telegeo"):
pandas
geopy
plotly
tqdm
telethon

How to use

step1: import telegeo

from telegeo import telegeo

step2: generating all coordinates within the specified latitude and longitude range.
use the map_range() fucntion in telegeo to generate the coordinates you need.

users should provide the following parameters⬇
lat_max: max latitude of the map range.
lon_max: max longitude of the map range.
lat_min: min latitude of the map range.
lon_min: min longitude of the map range.
distance: the distance between two coordinates on the map.
save_path: the path and filename for saving a csv file, which records all the coordinates.
(see Figure 1 for the first 5 parameters)

Example:
Move every 500 meters to generate all coordinates covering Hong Kong. And, save as csv.

telegeo.map_range(22.560100,114.404948,22.155232,113.835564,0.5,'geo_range_hk_r500.csv')

step3: generate a interactive map for displaying and checking the coordinates on a world map.
use the map_show() function in telegeo to create the map based on the above csv file.

telegeo.map_show('geo_range_hk_r500.csv')

Figure 2

More tutorial: To Be Continued...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

telegeo-0.0.5.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

telegeo-0.0.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file telegeo-0.0.5.tar.gz.

File metadata

  • Download URL: telegeo-0.0.5.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for telegeo-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5a1ef2ca30307f0d6d1ba6b60f0cb7015742a2103235f7f079f3be4d5a53efd7
MD5 2b768aaebea2fd06e7559a57bc77eada
BLAKE2b-256 20393d4bc23bf9d411f80405b0494be3e6d0a473b5c32ac73856afe20aa941dc

See more details on using hashes here.

File details

Details for the file telegeo-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: telegeo-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for telegeo-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 672071839dbe4409801fea73502c07cbd156acb57898a4b438b2d7edb9d2ecb4
MD5 6d61984013781f438a09a74c8ef8189c
BLAKE2b-256 c811c545f64e627a369ee1cb98bbbfcfaabfc6682966d913e2d2dc4a854632e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page