im not dealing with megadb and fichier, as there are always better alternatives. if not ill add a way to select a downloaded .rar, though the links will be given to the user

This commit is contained in:
nosch
2026-02-27 23:27:45 +01:00
parent 29bac99359
commit b9dc6cc18d
5 changed files with 48 additions and 11 deletions
@@ -0,0 +1,21 @@
import requests
from bs4 import BeautifulSoup
def scrape_fichier(url: str):
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
btn = soup.find_all("a", class_="ok")
print(response.text)
link = btn[0].get("href")
return link
if __name__ == "__main__":
print(scrape_fichier("https://1fichier.com/?ai6vzcfi1r79q9rebc3a"))