From 804113fa83dd04f7d36aa576bea7f7e9afcc8966 Mon Sep 17 00:00:00 2001 From: Official-Husko <27901510+Official-Husko@users.noreply.github.com> Date: Tue, 28 May 2024 19:49:56 +0200 Subject: [PATCH 1/3] fix #34 --- modules/multporn.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/modules/multporn.py b/modules/multporn.py index b1f8347..978d0af 100644 --- a/modules/multporn.py +++ b/modules/multporn.py @@ -49,13 +49,21 @@ def Fetcher(proxy_list, user_proxies, header, URL): else: raw_req = requests.get(URL, headers=header) - req = raw_req.headers - # extract item id try: - raw_link = req["link"] - except: - print("[ " + colored("-","red") + " ] " + f"Please provide a correct link! If this is a mistake please open a ticket with the url.") + if raw_req.headers.get("link", None) is not None: + raw_link = raw_req.headers.get("link") + + else: + pattern = r'' + # Search for the pattern in the HTML content + match = re.search(pattern, raw_req.text) + + if match: + raw_link = match.group(1) + + except Exception as e: + print("[ " + colored("-","red") + " ] " + f"Node Link not Found. Double check the link else report this. Error: {e}") sleep(5) return From 015dcaa0a8324fcfbf2c61634795adcc00309131 Mon Sep 17 00:00:00 2001 From: Official-Husko <27901510+Official-Husko@users.noreply.github.com> Date: Tue, 28 May 2024 19:51:43 +0200 Subject: [PATCH 2/3] bump version --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index c48a841..a10653c 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import sys import inquirer -version = "1.6.2" +version = "1.6.3" if os.name == 'nt': from ctypes import windll From 5c8acb0764172bde6381fb01e2212d6f5c68a96a Mon Sep 17 00:00:00 2001 From: Official-Husko <27901510+Official-Husko@users.noreply.github.com> Date: Tue, 28 May 2024 19:54:35 +0200 Subject: [PATCH 3/3] update requests library --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f011edd..227d2c0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,7 +10,7 @@ inquirer==3.1.3 jinxed==1.2.0 python-editor==1.0.4 readchar==4.0.5 -requests==2.31.0 +requests==2.32.0 six==1.16.0 termcolor==2.3.0 urllib3==2.0.7