hsurl module¶
-
hsurl.
download_torrent
(torrent)[source]¶ This function downloads a torrent
Parameters: torrent – Name of the torrent to be downloaded
-
hsurl.
get_html_from_anime
(name)[source]¶ This function gets the content of an HTML page
Parameters: name – The anime name (e.g: One Piece 717) Returns: The readed response or false
-
hsurl.
search_result
(html, query)[source]¶ This function searchs for torrent file in an HTML document
Parameters: - html – The HTML document
- query – Tuple containing information about the anime (name, episod number)
Returns: A tuple containing the HTML name, link of the torrent, name of the anime and the episod number