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 hashes)