installed fuzzyfinder, scraped the links, started UI

This commit is contained in:
nosch
2026-02-25 23:22:40 +01:00
parent 7662c861ea
commit 886ee8f0f0
4 changed files with 169 additions and 0 deletions
File diff suppressed because one or more lines are too long
+24
View File
@@ -0,0 +1,24 @@
from bs4 import BeautifulSoup
import requests
import re
#from core.utils.general.logs import consoleLog
def scrape_steamrip_links():
url = f"https://steamrip.com/games-list-page/"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
games = soup.find_all("li", class_="az-list-item")
if len(games) == 0:
return []
links = []
for gamehtml in games:
link = gamehtml.find("a", href=lambda x: x and x.startswith("/"))
links += re.findall('(?<=href=")[^"]*', link.__str__())
return links
if __name__ == "__main__":
print(scrape_steamrip_links())