mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-04 09:59:41 +02:00
remove unnecessary comments and soup object
This commit is contained in:
@@ -3,14 +3,13 @@ import asyncio
|
|||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
global url_uztracker
|
global url_uztracker
|
||||||
url_uztracker = "https://uztracker.net/tracker.php?nm=" # placeholder url for now
|
url_uztracker = "https://uztracker.net/tracker.php?nm="
|
||||||
|
|
||||||
async def init_uztracker():
|
async def init_uztracker():
|
||||||
global up
|
global up
|
||||||
global soup
|
global soup
|
||||||
try:
|
try:
|
||||||
response = requests.get(url_uztracker) # get da content from da url
|
response = requests.get(url_uztracker)
|
||||||
soup = BeautifulSoup(response.content, 'html.parser') # create bs object
|
|
||||||
up = True
|
up = True
|
||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
print(f"\nRequest Exception on {url_uztracker}:")
|
print(f"\nRequest Exception on {url_uztracker}:")
|
||||||
|
|||||||
Reference in New Issue
Block a user