mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
22 lines
386 B
Python
22 lines
386 B
Python
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"))
|
|
|
|
|