Commit b362c56c authored by prx's avatar prx

useless option in alphareign

parent da0192c3
......@@ -628,7 +628,6 @@ class TorrentSearch:
leechs = str()
res = {}
results = soup.find('div', id='results')
for r in soup.find_all("div", class_="result"):
name = r['data-name']
size = r['data-size']
......@@ -663,9 +662,9 @@ class TorrentSearch:
size : size
seed : number of seeds
"""
url = 'https://alphareign.se/'
keys = {'query': sch}
s = do_req_get(url, "text", keys)
baseurl = 'https://btdb.in/q'
url = '{}/q/{}/{}'.format(baseurl, sch, page)
s = do_req_get(url, "text")
soup = bs4.BeautifulSoup(s, "html.parser")
name = str()
......@@ -675,7 +674,7 @@ class TorrentSearch:
leechs = str()
res = {}
results = soup.find('div', id='results')
<div class="item-meta-info">
for r in soup.find_all("div", class_="result"):
name = r['data-name']
size = r['data-size']
......
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