Skip to main content

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


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)

Uploaded Source

Built Distribution

TGPhind-0.1.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

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