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