mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
removed comment
This commit is contained in:
@@ -19,7 +19,7 @@ def scrape_uztracker():
|
|||||||
if link.has_attr('href'):
|
if link.has_attr('href'):
|
||||||
href = link['href']
|
href = link['href']
|
||||||
post_url = f"https:{href}" if isinstance(href, str) and href.startswith("//") else href
|
post_url = f"https:{href}" if isinstance(href, str) and href.startswith("//") else href
|
||||||
if isinstance(post_url, str) and post_url.startswith("./viewtopic.php?t="): # please figure out why this .startswith filter is not working
|
if isinstance(post_url, str) and post_url.startswith("./viewtopic.php?t="):
|
||||||
post_url = f"https://uztracker.net{post_url[1:]}"
|
post_url = f"https://uztracker.net{post_url[1:]}"
|
||||||
print(f"Found post link: {post_url}")
|
print(f"Found post link: {post_url}")
|
||||||
found_links = True
|
found_links = True
|
||||||
@@ -56,6 +56,8 @@ def get_magnet_link(post_url="https://uztracker.net/viewtopic.php?t=23897"):
|
|||||||
# and - if x exists, THEN check the next part
|
# and - if x exists, THEN check the next part
|
||||||
# x.startswith('magnet:') - does x start with "magnet:"?
|
# x.startswith('magnet:') - does x start with "magnet:"?
|
||||||
|
|
||||||
|
post_url = scrape_uztracker
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
soup = scrape_uztracker()
|
soup = scrape_uztracker()
|
||||||
if soup:
|
if soup:
|
||||||
|
|||||||
Reference in New Issue
Block a user