-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathsearch.py
34 lines (29 loc) · 882 Bytes
/
search.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
33
34
from bs4 import BeautifulSoup as bs
import pyperclip
import requests
import zooqle
import kickass
import piratebay
import spell
query=input("Enter your query\n")
query=str(spell.Check(query))
print("Searching for :",query)
n=int(input("Enter your preferred Torrent Search Engine:\n 1: ThePirateBay\n 2: Kickass\n 3: Zooqle\n 4: All\n"))
if n==1:
piratebay.piratebay_search(query, True)
elif n==2:
kickass.kickass_search(query, True)
elif n==3:
zooqle.zooqle_search(query, True)
elif n == 4:
print("Searching ThePirateBay")
print("-----------------------")
piratebay.piratebay_search(query, False)
print("Searching Kickass")
print("-----------------------")
kickass.kickass_search(query, False)
print("Searching Zooqle")
print("-----------------------")
zooqle.zooqle_search(query, False)
else:
print("Please try again!")