forked from Py-Contributors/awesomeScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
torrent_searcher.py
32 lines (29 loc) · 2.68 KB
/
torrent_searcher.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import requests
import pyperclip
logo = '''
████████╗░█████╗░██████╗░██████╗░███████╗███╗░░██╗████████╗ ░██████╗███████╗░█████╗░██████╗░░█████╗░██╗░░██╗
╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗██╔════╝████╗░██║╚══██╔══╝ ██╔════╝██╔════╝██╔══██╗██╔══██╗██╔══██╗██║░░██║
░░░██║░░░██║░░██║██████╔╝██████╔╝█████╗░░██╔██╗██║░░░██║░░░ ╚█████╗░█████╗░░███████║██████╔╝██║░░╚═╝███████║
░░░██║░░░██║░░██║██╔══██╗██╔══██╗██╔══╝░░██║╚████║░░░██║░░░ ░╚═══██╗██╔══╝░░██╔══██║██╔══██╗██║░░██╗██╔══██║
░░░██║░░░╚█████╔╝██║░░██║██║░░██║███████╗██║░╚███║░░░██║░░░ ██████╔╝███████╗██║░░██║██║░░██║╚█████╔╝██║░░██║
░░░╚═╝░░░░╚════╝░╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝╚═╝░░╚══╝░░░╚═╝░░░ ╚═════╝░╚══════╝╚═╝░░╚═╝╚═╝░░╚═╝░╚════╝░╚═╝░░╚═╝'''
print(logo)
print(" ")
print(" Credit : * Utkarsh Kanojiya \n * CyberBoySumanjay")
print("\n")
movie_name = input("Enter Movie Name :-- ")
url = f"https://api.sumanjay.cf/torrent/?query={movie_name}"
torrent_result = requests.get(url).json()
index = 1
magnet = []
for result in torrent_result:
if 'movie' in result['type'].lower():
print(index, ")", result['name'], "-->>", result['size'])
index = index + 1
magnet.append(result['magnet'])
choice = int(input("Enter Number Which Torrent You Want -> "))
print(" ")
print("Magnet Link Of Your File ", magnet[choice - 1])
pyperclip.copy(magnet[choice - 1])
print(" ")
print("Your Magnet Link Copied On Clipboard")