mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 17:59:43 +02:00
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:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user