Search for articles by title, in telegra.ph and its mirrors.
Project description
Documentation in Russian
pip install TGPhind
TGPhind - Инструмента для поиска стотей на сайте telegra.ph
И его зеркалах.
Основной класс TGPhind
MIRRORS = ['te.legra.ph', 'graph.org', 'telegra.ph']
@dataclass
class Proxy:
host: str = ''
protocol: str = 'https'
def __bool__(self): ...
class TGPhind:
def __init__(self, article_name: str,
MAX_TH: Any = cpu_count(),
proxy: Proxy = Proxy(),
BRACKETS='<>'):
...
@property
def result(self) -> Union[tuple[str], tuple]: ...
def only_paths(self) -> tuple[str]:
return self.result
def hosts_map(self, mirrors=None) -> tuple[tuple[str]]:
"""
Вернёт кортеж кортежей строк
Со всеми возможными зеркалами этой статьи (mirrors или MIRRORS)"""
...
def test_mirrors(self):
"""Протестировать рабочии-ли зеркала и удалить нерабочии"""
...
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
TGPhind-0.1.2.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file TGPhind-0.1.2.tar.gz
.
File metadata
- Download URL: TGPhind-0.1.2.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16f04fdd1f447026b7ff5789dcdbc3971f48e20496344b336e8efdbacaccc0bf |
|
MD5 | 821aef51c813251e342122bd626eb53f |
|
BLAKE2b-256 | 760da37151e1a0163c96a56eb86588bcdd2ac50444bdb1be8f9bcd1e6d04d684 |
File details
Details for the file TGPhind-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: TGPhind-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9629a55811ebaf330fb037ec224e2fed21e3833e2c94c7b780f729377a1985f |
|
MD5 | 26d53baf74f6dcf3a57f72d3316fc851 |
|
BLAKE2b-256 | f96506d0d03c6de099c994a515f6b8876e40aa25e9837ab352a9e6c966c57250 |