mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
Fix URL handling for Steamrip games and improve scraping of direct download links from buzzheavier.com
This commit is contained in:
+8
-7
@@ -95,18 +95,17 @@ game_titles = clean_game_titles(list(games_dict.keys()), badphrases)
|
|||||||
|
|
||||||
if game_titles:
|
if game_titles:
|
||||||
for title in game_titles:
|
for title in game_titles:
|
||||||
print(title)
|
pass
|
||||||
else:
|
else:
|
||||||
print("No game titles found. Please report this on Github.")
|
print("No game titles found. Please report this on Github.")
|
||||||
|
|
||||||
search_query = input("Enter a game title to search: ")
|
def search():
|
||||||
search_results = search_games(search_query, game_titles)
|
search_query = input("Enter a game title to search: ")
|
||||||
|
search_results = search_games(search_query, game_titles)
|
||||||
if search_results:
|
if search_results:
|
||||||
print("Search Results:")
|
print("Search Results:")
|
||||||
for idx, result in enumerate(search_results, start=1):
|
for idx, result in enumerate(search_results, start=1):
|
||||||
print(f"{idx}. {result}")
|
print(f"{idx}. {result}")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
selection = int(input("Select a game by entering the corresponding number: "))
|
selection = int(input("Select a game by entering the corresponding number: "))
|
||||||
if 1 <= selection <= len(search_results):
|
if 1 <= selection <= len(search_results):
|
||||||
@@ -125,5 +124,7 @@ if search_results:
|
|||||||
scrape_links(game_url, keywords)
|
scrape_links(game_url, keywords)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print("Invalid selection.")
|
print("Invalid selection.")
|
||||||
else:
|
else:
|
||||||
print("No results found.")
|
print("No results found.")
|
||||||
|
search()
|
||||||
|
search()
|
||||||
Reference in New Issue
Block a user