Commit a8270b82 authored by prx's avatar prx

update kickasstorrent

parent 5d7af2ea
......@@ -435,7 +435,7 @@ class TorrentSearch:
leechs = str()
yield(d)
def _kickasstorrents(self, sch, page=1):
def _kickasstorrents(self, sch):
"""
Return:
List of dictionnaries with keys :
......@@ -444,7 +444,7 @@ class TorrentSearch:
size : size
seed : number of seeds
"""
url = 'https://kat.cr/usearch/{}/{}/'.format(sch, page)
url = 'https://katcr.to/usearch/{}/'.format(sch)
s = do_req_get(url, "text")
soup = bs4.BeautifulSoup(s, "html.parser")
......@@ -499,9 +499,9 @@ class TorrentSearch:
if __name__ == '__main__':
with TorrentSearch('btdigg') as ts:
with TorrentSearch('kickasstorrents') as ts:
s = ts.search('flash', 0)
print(s)
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment