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')
More tutorial: To Be Continued...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file telegeo-0.0.8.tar.gz.
File metadata
- Download URL: telegeo-0.0.8.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5329552479e067d9d7b68885e4e5e2bc405abfb4d7bad7037d6bf5026b16411a
|
|
| MD5 |
5835596d40ded2fe9f279cf5729ab156
|
|
| BLAKE2b-256 |
6147244531c9e4b6c6d85967af1ceb5a8e74706f67a1bb9887dbcf73dbd5a4ea
|
File details
Details for the file telegeo-0.0.8-py3-none-any.whl.
File metadata
- Download URL: telegeo-0.0.8-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1cdc34e77c6521fb0612ee6e634281c9dc120973622e345f11e4e8a1bfd890
|
|
| MD5 |
7e42570a928427ef03f00bde7c98fb50
|
|
| BLAKE2b-256 |
9961ff1cdf39cb2f1ee1c8967e377899e4aad31e43fc9907e8031a1ea25d50d7
|