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"))
+1 -1
View File
@@ -27,4 +27,4 @@ def scrape_gofile(url):
out = scrape_gofile("https://gofile.io/d/tvvzAD")
print(out)
print(out)
+5 -4
View File
@@ -2,18 +2,17 @@ import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
import time
options = uc.ChromeOptions()
options.set_capability("goog:loggingPrefs", {"performance": "ALL"})
driver = uc.Chrome(options=options)
driver = uc.Chrome(options=options, version_main=145)
driver.get("https://megadb.net/qp0yi1v1p6nl")
WebDriverWait(driver, 20).until(
EC.frame_to_be_available_and_switch_to_it(
EC.frame_to_be_available_and_switch_to_it(
(By.XPATH, "//iframe[@title='reCAPTCHA']")
)
)
@@ -27,6 +26,8 @@ checkboxelement = driver.find_element(By.ID, "recaptcha-anchor")
while checkboxelement.get_attribute("aria-checked") == "false":
time.sleep(1)
print("captcha is solved")
driver.quit()
driver.quit()
+1 -1
View File
@@ -76,4 +76,4 @@ def scrape_steamrip_game_downloads(gamelink):
if __name__ == "__main__":
#print(offline_scrape_steamrip_links())
print(scrape_steamrip_game_downloads("/r-e-p-o-free-download/"))
print(scrape_steamrip_game_downloads("/r-e-p-o-free-download/"))