steamrip scrapes downloadlinks for the provider - steamrip connection

This commit is contained in:
nosch
2026-02-27 10:02:11 +01:00
parent d6a388652b
commit 29bac99359
6 changed files with 70 additions and 4 deletions
@@ -0,0 +1,25 @@
import undetected_chromedriver as uc
from selenium.webdriver.common.by import By
import requests
def scrape_vikingfile(url):
options = uc.ChromeOptions()
driver = uc.Chrome(options=options, version_main=145)
driver.get(url)
while driver.find_element(By.ID, "download-link").get_attribute("href") is None:
continue
link = driver.find_element(By.ID, "download-link").get_attribute("href")
driver.quit()
return link
if __name__ == "__main__":
example = "https://vik1ngfile.site/f/4txMf0RghN"
downloadlink = scrape_vikingfile(example)
print(downloadlink)