Welcome to HolyScrap’s documentation!¶
Contents:
hsdb module¶
-
hsdb.
add_anime
(name, id)[source]¶ This function adds an anime to the database and print weither it works or not
Parameters: - name – Name of the anime to be added
- id – Episod number
-
hsdb.
delete_anime
(name)[source]¶ This function deletes an anime and print weither it works or not
Parameters: name – Name of the anime to be deleted
-
hsdb.
get_animes
()[source]¶ This function returns all the animes in the database
Returns: A tuple of animes
hshelper module¶
hsrun module¶
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