accidentally included a pycache

This commit is contained in:
nosch
2026-02-26 18:12:12 +01:00
parent 1c3fb95e40
commit d6a388652b
3 changed files with 77 additions and 0 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)