From a4923c931be100635055d4e489ffe1191d7da036 Mon Sep 17 00:00:00 2001 From: KeksNino Date: Sun, 15 Dec 2024 15:10:23 +0100 Subject: [PATCH] Steamrip Scraper and DDL link input --- download.py | 24 +++++++------ main.py | 3 +- scraper.py | 102 ++++++++++++++++++++++++++++++++-------------------- 3 files changed, 79 insertions(+), 50 deletions(-) diff --git a/download.py b/download.py index 06de859..d76ab85 100644 --- a/download.py +++ b/download.py @@ -10,6 +10,7 @@ aria2 = aria2p.API( secret="" ) ) + download_paused = False def pauseDownload(_): global download_paused @@ -28,26 +29,29 @@ def startDownload(_): download_paused = False else: print("Download Started!") - download = aria2.add_magnet(magnet_uri) + download = aria2.add_magnet(uri) download_paused = False def terminate(): return -#Magnet Download -downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads") -subprocess.Popen(["aria2c", "--enable-rpc", "--rpc-listen-all=true", f"--dir={downloads_dir}"]) -magnet_uri = "magnet:?xt=urn:btih:7FBF03CCC9115260DC50102E5A31E83E91422A79&dn=Ready+or+Not%3A+LSPD+Bundle+%28v66884+%2B+4+DLCs%2FBonuses+%2B+Windows+7+Fix%2C+MULTi12%29+%5BFitGirl+Repack%2C+Selective+Download+-+from+34.7+GB%5D&tr=udp%3A%2F%2Fopentor.net%3A6969&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.theoks.net%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.ccp.ovh%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=https%3A%2F%2Ftracker.tamersunion.org%3A443%2Fannounce&tr=udp%3A%2F%2Fexplodie.org%3A6969%2Fannounce&tr=http%3A%2F%2Ftracker.bt4g.com%3A2095%2Fannounce&tr=udp%3A%2F%2Fbt2.archive.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fbt1.archive.org%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.filemail.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker1.bt.moack.co.kr%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce" +print("Enter Download URL: ") +uri = input() -#Torrent Download -downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads") -subprocess.Popen(["aria2c", "--enable-rpc", "--rpc-listen-all=true", f"--dir={downloads_dir}"]) -torrent_path = "C:/Users/Downloads/Ready or Not.torrent" +#Magnet Download +# downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads") +# subprocess.Popen(["aria2c", "--enable-rpc", "--rpc-listen-all=true", f"--dir={downloads_dir}"]) +# magnet_uri = "magnet:?xt=urn:btih:7FBF03CCC9115260DC50102E5A31E83E91422A79&dn=Ready+or+Not%3A+LSPD+Bundle+%28v66884+%2B+4+DLCs%2FBonuses+%2B+Windows+7+Fix%2C+MULTi12%29+%5BFitGirl+Repack%2C+Selective+Download+-+from+34.7+GB%5D&tr=udp%3A%2F%2Fopentor.net%3A6969&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&tr=udp%3A%2F%2Ftracker.theoks.net%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.ccp.ovh%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=https%3A%2F%2Ftracker.tamersunion.org%3A443%2Fannounce&tr=udp%3A%2F%2Fexplodie.org%3A6969%2Fannounce&tr=http%3A%2F%2Ftracker.bt4g.com%3A2095%2Fannounce&tr=udp%3A%2F%2Fbt2.archive.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fbt1.archive.org%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.filemail.com%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker1.bt.moack.co.kr%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.openbittorrent.com%3A80%2Fannounce&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Fcoppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.zer0day.to%3A1337%2Fannounce" + +# #Torrent Download +# downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads") +# subprocess.Popen(["aria2c", "--enable-rpc", "--rpc-listen-all=true", f"--dir={downloads_dir}"]) +# torrent_path = "C:/Users/Downloads/Ready or Not.torrent" #Direct Download downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads") subprocess.Popen(["aria2c", "--enable-rpc", "--rpc-listen-all=true", f"--dir={downloads_dir}"]) -url = "https://www.example.com/file.zip" +uri downloads = aria2.get_downloads() diff --git a/main.py b/main.py index a14c89f..52437f2 100644 --- a/main.py +++ b/main.py @@ -1,2 +1,3 @@ import download -import gui \ No newline at end of file +import gui +import scraper \ No newline at end of file diff --git a/scraper.py b/scraper.py index 4460406..4efb16c 100644 --- a/scraper.py +++ b/scraper.py @@ -1,43 +1,67 @@ from bs4 import BeautifulSoup import requests +import re -# DDL -url = "https://steamrip.com/" -url = "https://cs.rin.ru/" -url = "https://gamesdrive.net/" -url = "https://gog-games.to/" -url = "https://forum.torrminatorr.com/" -url = "https://ankergames.net/" -url = "https://www.ovagames.com/" -url = "https://online-fix.me/" -url = "https://gamebounty.world/" -url = "https://steamgg.net/" -url = "https://g4u.to/" -url = "https://appnetica.com/" -url = "https://atopgames.com/" -url = "https://games4u.org/" -url = "https://rexagames.com/" -url = "https://cr4ckpass.online/" -url = "https://getfreegames.net/" -url = "https://gload.to/" -url = "https://steamunderground.net/" -url = "https://worldofpcgames.com/" -url = "http://www.leechinghell.pw/" -url = "https://awtdg.site/" -url = "https://www.cg-gamespc.com/" -url = "https://gamepcfull.com/" +url = "https://steamrip.com/games-list-page/" -# Repacks/Torrents -url = "https://www.kaoskrew.org/" -url = "https://fitgirl-repacks.site/" -url = "https://m4ckd0ge-repacks.site/" -url = "https://byxatab.com/" -url = "https://digital-zone.xyz/" -url = "https://elamigos.site/" -url = "https://dodi-repacks.site/" -url = "https://www.tiny-repacks.win/" -url = "https://freegogpcgames.com/" -url = "https://www.magipack.games/" -url = "https://collectionchamber.blogspot.com/" -url = "https://archive.org/details/classicpcgames" -url = "https://websites.umich.edu/~archive/" \ No newline at end of file +response = requests.get(url) + +if response.status_code == 200: + soup = BeautifulSoup(response.text, "html.parser") + + links = soup.find_all("a") + + for link in links: + href = link.get("href", "").lower() + text = link.text.strip() + + if re.search(r"/Discord/", href): + continue + + games = soup.find_all("li") + if games: + print("Games Found:") + for game in games: + print(game.text.strip()) + else: + print("No game titles found. Report this on Github.") +else: + print(f"Failed to retrieve the page. Status code: {response.status_code}") +# url = "https://cs.rin.ru/" +# url = "https://gamesdrive.net/" +# url = "https://gog-games.to/" +# url = "https://forum.torrminatorr.com/" +# url = "https://ankergames.net/" +# url = "https://www.ovagames.com/" +# url = "https://online-fix.me/" +# url = "https://gamebounty.world/" +# url = "https://steamgg.net/" +# url = "https://g4u.to/" +# url = "https://appnetica.com/" +# url = "https://atopgames.com/" +# url = "https://games4u.org/" +# url = "https://rexagames.com/" +# url = "https://cr4ckpass.online/" +# url = "https://getfreegames.net/" +# url = "https://gload.to/" +# url = "https://steamunderground.net/" +# url = "https://worldofpcgames.com/" +# url = "http://www.leechinghell.pw/" +# url = "https://awtdg.site/" +# url = "https://www.cg-gamespc.com/" +# url = "https://gamepcfull.com/" + +# # Repacks/Torrents +# url = "https://www.kaoskrew.org/" +# url = "https://fitgirl-repacks.site/" +# url = "https://m4ckd0ge-repacks.site/" +# url = "https://byxatab.com/" +# url = "https://digital-zone.xyz/" +# url = "https://elamigos.site/" +# url = "https://dodi-repacks.site/" +# url = "https://www.tiny-repacks.win/" +# url = "https://freegogpcgames.com/" +# url = "https://www.magipack.games/" +# url = "https://collectionchamber.blogspot.com/" +# url = "https://archive.org/details/classicpcgames" +# url = "https://websites.umich.edu/~archive/" \ No newline at end of file