mirror of
https://github.com/KeksPirates/SoftwareManager.git
synced 2026-08-03 17:39:42 +02:00
15 lines
341 B
Python
15 lines
341 B
Python
from utils.logging.logs import consoleLog
|
|
import webbrowser
|
|
import re
|
|
|
|
|
|
def scrape_megadb(url):
|
|
match = re.search(r"megadb\.net/([a-zA-Z0-9]+)", url)
|
|
if not match:
|
|
consoleLog("MegaDB: Invalid URL")
|
|
return None
|
|
|
|
consoleLog("MegaDB: Captcha required, launching browser...")
|
|
webbrowser.open(url)
|
|
return None
|