bundle.scraper.sites.site_1337 ============================== .. py:module:: bundle.scraper.sites.site_1337 Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/bundle/scraper/sites/site_1337/browser/index /autoapi/bundle/scraper/sites/site_1337/data/index Classes ------- .. autoapisummary:: bundle.scraper.sites.site_1337.Browser bundle.scraper.sites.site_1337.TorrentData Package Contents ---------------- .. py:class:: Browser(/, **data: Any) Bases: :py:obj:`bundle.core.browser.Browser` A specialized browser class for parsing 1337x.to search results, including extracting magnet links from detail pages. .. py:attribute:: url_suffix :type: str :value: 'https://1337x.to/' .. py:method:: set_context() -> Browser :async: .. py:method:: get_search_url(name: str, page: int = 1) -> str :async: .. py:method:: get_torrents(page: bundle.core.browser.Page) -> list[bundle.scraper.sites.site_1337.data.TorrentData] :async: .. py:method:: tabulate_torrents(torrents: list[bundle.scraper.sites.site_1337.data.TorrentData], truncate_width: int = 30) -> str :async: .. py:class:: TorrentData(/, **data: Any) Bases: :py:obj:`bundle.core.data.Data` Base data model class, providing utilities for serialization and deserialization from/to JSON, along with JSON Schema generation. .. attribute:: model_config Default model configuration settings. .. py:attribute:: name :type: str :value: None .. py:attribute:: seeds :type: int :value: None .. py:attribute:: leeches :type: int :value: None .. py:attribute:: uploaded_at :type: str :value: None .. py:attribute:: size :type: str :value: None .. py:attribute:: uploader :type: str :value: None .. py:attribute:: detail_url :type: str :value: None .. py:attribute:: magnet_link :type: str :value: None .. py:method:: check_non_negative(value)