Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
uk365 committed Jan 30, 2024
1 parent ca9448c commit 06eca22
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions FZBypass/core/bypass_scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,25 +158,27 @@ async def toonworld4all(url: str):
prsd += f"<a href='{sl}'>{tl.string}</a>, "
prsd = prsd[:-2]
return prsd

MAGNET_REGEX = r"magnet:\?xt=urn:btih:[a-zA-Z0-9]*"

async def tamilmv(url):
req=requests.get(url)
soup=bs(req.content,'html.parser')
magnets=soup.findAll('a')
links=[]
for i in magnets:
try:
if i.get_text()=="MAGNET" or i.find('img').get('alt')=="magnet.png":
j=i.find_previous_sibling('strong')
links.append({"name":j.get_text(),"link":i.get('href')})
# if i.get_text()=="MAGNET" or i.find('img').get('alt')=="magnet.png":
# j=i.find_previous_sibling('strong')
# links.append({"name":j.get_text(),"link":i.get('href')})
magnets = re_findall(MAGNET_REGEX, i.text)
except:
pass

print(i)
print(i.get_text())
print(i.get('href'))
# print(i)
# print(i.get_text())
# print(i.get('href'))

return 'parse_data'
return magnets



Expand Down

0 comments on commit 06eca22

Please sign in to comment.