Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 410: Gone #1170

Closed
httpanand opened this issue Nov 23, 2021 · 5 comments
Labels

Comments

@httpanand
Copy link

httpanand commented Nov 23, 2021

 line 5, in <module>
    vdo = yt.streams.first()


raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 410: Gone

How to fix this ? This was working , 5 months back .. : (

@httpanand httpanand added the bug label Nov 23, 2021
@github-actions
Copy link

Thank you for contributing to PyTube. Please remember to reference Contributing.md

@solomsk
Copy link

solomsk commented Dec 1, 2021

代码是:
`from pytube import YouTube

yt = YouTube("http://www.youtube.com/watch?v=Ik-RsDGPI5Y")
print(yt.streams.all())
`
报错日志是:
/Applications/anaconda3/bin/python3 /Users/solo/Documents/TestWorkSpace/AA_000通用test/AA_pytube_test/pytube_test.py
Traceback (most recent call last):
File "/Users/solo/Documents/TestWorkSpace/AA_000通用test/AA_pytube_test/pytube_test.py", line 4, in
print(yt.streams.all())
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/main.py", line 311, in streams
return StreamQuery(self.fmt_streams)
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/main.py", line 214, in fmt_streams
if "adaptive_fmts" in self.player_config_args:
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/main.py", line 188, in player_config_args
self._player_config_args = self.vid_info
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/main.py", line 281, in vid_info
return dict(parse_qsl(self.vid_info_raw))
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/main.py", line 109, in vid_info_raw
self._vid_info_raw = request.get(self.vid_info_url)
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/request.py", line 53, in get
response = _execute_request(url, headers=extra_headers, timeout=timeout)
File "/Applications/anaconda3/lib/python3.8/site-packages/pytube/request.py", line 37, in _execute_request
return urlopen(request, timeout=timeout) # nosec
File "/Applications/anaconda3/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Applications/anaconda3/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/Applications/anaconda3/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/Applications/anaconda3/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/Applications/anaconda3/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Applications/anaconda3/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone

Process finished with exit code 1

@httpanand
Copy link
Author

I dont think , this module is maintained now !

@httpanand
Copy link
Author

No response from maintainers :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@solomsk @httpanand and others