Skip to content

Commit

Permalink
update to 1.6.3
Browse files Browse the repository at this point in the history
update to 1.6.3
  • Loading branch information
Official-Husko authored May 28, 2024
2 parents 2dd22bb + 5c8acb0 commit 2523bff
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
import inquirer

version = "1.6.2"
version = "1.6.3"

if os.name == 'nt':
from ctypes import windll
Expand Down
18 changes: 13 additions & 5 deletions modules/multporn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<link\s+rel="shortlink"\s+href="([^"]+)"\s*/?>'
# 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

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2523bff

Please sign in to comment.