Open AlexYukikaze opened 4 years ago
Since the quota is something that Google controls, I don't think that it can be solved from the code perspective... just try running the script a little later.
Related to this though, I get a 403 forbidden error, I solved this momentarily by adding cookie support to the downloader (locally):
request = urllib.request.Request(url=fetch_url, headers=headers)
cj = CookieJar()
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
try:
# response = urllib.request.urlopen(request, timeout=timeout)
response = opener.open(request)
except urllib.error.HTTPError as error:
There are still some urls that give the 403 error though :(
I can provide a PR if needed.
When i try to fetch https://drive.google.com/uc?export=download&id=0B42Yr9OZx2KEQklXS1QwNnNJM0E with
--relax
flag and firefox 75 user-agentMozilla/5.0 (Windows NT 10.0; Win64; x64; rv:75.0) Gecko/20100101 Firefox/75.0
i get this html file instead of .obj fileWithout user-agent result is defferent and more readable
Too many users have viewed or downloaded this file recently. Please try accessing the file again later.