mirror of
https://github.com/simon987/mobilism_scrape.git
synced 2025-04-18 18:16:45 +00:00
err
This commit is contained in:
parent
3f05049032
commit
8820600516
6
run
6
run
@ -80,7 +80,8 @@ def do_premium_download(link, i):
|
||||
form = soup.find("form")
|
||||
|
||||
if not form:
|
||||
print(r.content, file=stderr)
|
||||
if "The file you were looking for could not be found" not in r.content:
|
||||
print(r.content, file=stderr)
|
||||
return
|
||||
|
||||
r2 = session.post("https://mblservices.org/amember/downloader/downloader/app/index.php", {
|
||||
@ -95,7 +96,8 @@ def do_premium_download(link, i):
|
||||
download_link = soup2.find("a", attrs={"download": lambda x: x}).get("download")
|
||||
_download(download_link, i)
|
||||
except:
|
||||
print(r2.content, file=stderr)
|
||||
if "not found" not in r.content:
|
||||
print(r2.content, file=stderr)
|
||||
pass
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user