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

Instagram urls ending in # fail in python2.6 #1038

Closed
jaimeMF opened this issue Jul 13, 2013 · 2 comments
Closed

Instagram urls ending in # fail in python2.6 #1038

jaimeMF opened this issue Jul 13, 2013 · 2 comments
Labels
bug

Comments

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 13, 2013

The tests have failed on this in the past two days (since https://travis-ci.org/rg3/youtube-dl/builds/8945203). Removing the '#' at the end of the url or if the input url doesn't have this ending solve the issue.
Any idea?

@phihag phihag closed this in 73b57f0 Jul 13, 2013
@jaimeMF
Copy link
Collaborator Author

@jaimeMF jaimeMF commented Jul 13, 2013

I think I've expressed myself bad, but the error I got (and sill get) is a HTTP 404:

$ python2.6 ../y-dl "http://instagram.com/p/aye83DjauH/#"
[debug] System config: []
[debug] User config: ['--keep-video', '--verbose']
[debug] Command-line args: ['http://instagram.com/p/aye83DjauH/#']
[debug] youtube-dl version 2013.07.12
[debug] Git HEAD: 73b57f0
[debug] Python version 2.6.7 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
[Instagram] aye83DjauH: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 404: NOT FOUND; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/Users/{username}/Developer/proyectos/youtube-dl/youtube-dl/youtube_dl/extractor/common.py", line 120, in _request_webpage
    return compat_urllib_request.urlopen(url_or_request)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 518, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Without the ending '#':

$ python2.6 ../y-dl "http://instagram.com/p/aye83DjauH/"
[debug] System config: []
[debug] User config: ['--keep-video', '--verbose']
[debug] Command-line args: ['http://instagram.com/p/aye83DjauH/']
[debug] youtube-dl version 2013.07.12
[debug] Git HEAD: 73b57f0
[debug] Python version 2.6.7 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
[Instagram] aye83DjauH: Downloading webpage
[download] Resuming download at byte 1131520
[download] Destination: Video by naomipq-aye83DjauH.mp4
[download] 100.0% of 1.16MiB at 64.30KiB/s ETA 00:00
phihag added a commit that referenced this issue Jul 13, 2013
@phihag phihag reopened this Jul 13, 2013
@phihag phihag closed this in b9d3e16 Jul 13, 2013
@jaimeMF
Copy link
Collaborator Author

@jaimeMF jaimeMF commented Jul 14, 2013

Thanks, any idea of why that fails only in 2.6?

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.