Skip to content

vittoriopippi/hdtscraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HDTscraper

This module allows you to easily scrape the information of movies and TV series uploaded to the HDtorrents website.

Installation

To install the module just run the following code:

pip install hdtscraper

API

Table of Contents

All your files and folders are presented as a tree in the file explorer. You can switch from one to another by clicking a file in the tree.

[source]

  • username: string containing the account username
  • password: string containing the account password

Returns the hdtscraper object.

hdtscraper.is_up(home_url='https://hdtorrents.xyz')

[source]

This is a static method used to assert that the website is up.

  • home_url: url on which the check is performed

Returns True if the website is up, False otherwise.

[source]

This function is automatically called before scraping the site. It only logs in if the last login was more than a certain amount of time ago. The length of the interval is defined by the session_length value present inside the hdtscraper class.

Returns the session after logging in.

[source]

  • movie_count: number of torrents to return
  • max_pages: number of pages that will be taken into account

Returns a list containing the latest movie_count torrents uploaded.

[source]

  • hd_id: HDtorrent id of a torrent
  • max_pages: number of pages that will be taken into account

Return all uploaded torrents after the specified one.

[source]

  • page_index: index of an HDtorrents page starting from 0

Returns all torrents on the given page.

[source]

  • movie: a torrent returned by one of the functions above
  • dst_path: path where to save the torrent

Returns None.