Giter VIP home page Giter VIP logo

yts_torrents's Introduction

Thoughts on archiving

I am archiving this (and the related repositories - yts.am_scraper and movie_torrents). There are several reasons but the most prominent one being that some people might use it for torrenting unsanctioned copyrighted material. As mentioned in the disclaimer, this was not the goal. Maybe this was the reason that I have not thought about this project since the time it was put on Github and therefore it's very outdated and might not even work out-of-the-box.

yts_torrents

download all torrents from yts.am (yify movies). Uses yify api.

Used to create movie_torrents[repository of 10k+ movie torrents].

Usage

  • clone the repo
git clone https://github.com/makkoncept/yts_torrents.git
cd yts_torrents
  • Create a virtualenv:
python3 -m venv venv
  • Activate it on Linux:
. venv/bin/activate
  • Or on Windows cmd:
venv\Scripts\activate.bat
  • Install requests
pip install requests

run python yts_am_api.py to make json files containing torrent links of the movies. Then run python linkdownload.py to parse the created json files and download the torrents.

Priority

The torrents will be downloaded according to the following priority:

1080p bluray> 1080p web> 720p bluray> 720p web

Disclaimer

Downloading copyright movies may be illegal in your country. This tool is for educational purposes only and was created only to experiment with yify api

yts_torrents's People

Contributors

makkoncept avatar spencerxzx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

yts_torrents's Issues

Timeouts and Colons

Hi, firstly I would like to say thank you for developing this. I started to do this myself and then decided to check github for a solution. I was not disappointed.

First issue I ran into is timeouts. I'm using a VPN so maybe this is why I saw these issues, but the timeout value of 3 seconds was not enough for me. I had issues even with 10 seconds. I upped the timeout to 30 seconds and had no issues. Although, upon a timeout, the error is unhandled.

Second issue is with colons. When downloading a torrent with a colon in the name, os.path.join saw it as a drive letter and threw away the rest of the string. Therefore you would end up with a torrent missing half of its name as well as an extension. I was able to fix this by changing line 66 in "linkdowload.py" from:
movie = movie.encode('utf-8').decode('utf-8')
to:
movie = movie.encode('utf-8').decode('utf-8').replace(':','')

Once again, thanks for creating this. Saved me a ton of time and I will continue to modify it to fit my needs.

I do not support piracy. This is for educational purposes only.

Imdb & genre

Hello
Code is great work perfectly but what about adding imdb code to file name
And also genre sort will be helpful the code will be complete and perfectly working
Great work

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.