A Python port of the GetIDs engine that calculates the date of creation for Telegram accounts using known creation dates.
Project description
This is a Python port of the GetIDs engine that calculates the date of creation for Telegram accounts using known creation dates.
The original repository can be found here.
Installation
$ pip install -U getids
Usage
You can use the package in two ways:
Interactively
$ python -m getids 1234567 200097591 2000000000
Expected output:
1234567: older_than 10/2013
200097591: aprox 5/2016
2000000000: newer_than 10/2021
From python code
>>> from getids import get_date_as_string, get_date_as_datetime
>>>
>>> get_date_as_string(1234567)
('older_than', '10/2013')
>>> get_date_as_string(200097591)
('aprox', '5/2016')
>>> get_date_as_string(2000000000)
('newer_than', '10/2021')
>>>
>>> get_date_as_datetime(1234567)
(-1, datetime.datetime(2013, 10, 31, 22, 0))
>>> get_date_as_datetime(200097591)
(0, datetime.datetime(2016, 5, 6, 17, 25, 6))
>>> get_date_as_datetime(2000000000)
(1, datetime.datetime(2021, 10, 11, 21, 53, 20))
Note: The get_date_as_datetime function is seen as a low-level function, since it returns a specific date, which is not wanted in most cases, since the date is not accurate.
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 getids-1.1.0.tar.gz.
File metadata
- Download URL: getids-1.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46d4e9f5b640fe6c8aa7bd9706c4852a63642fdb317a1808fdba5df7a2da6a8f
|
|
| MD5 |
1f42a3f63e4e64f7c5ed3bd9fa84710b
|
|
| BLAKE2b-256 |
f51cd52575a5fa49a1ea56c7e26ccf7e404ab7196188b01b4a62ff57791f75eb
|
File details
Details for the file getids-1.1.0-py3-none-any.whl.
File metadata
- Download URL: getids-1.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91f624820859397ccd5878b0d35d34a82c260808eadac8f1f1fb6ca66bb8bbc3
|
|
| MD5 |
bf1c5f210d878f53c520e06ef8ac45c0
|
|
| BLAKE2b-256 |
d6876716f5e26df6f114c5c96145a975ed70e4024de9a5c2c43c2050a717a034
|