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

Twitter mobile links Unsupported error #8937

Open
Drizzlez opened this issue Mar 22, 2016 · 3 comments
Open

Twitter mobile links Unsupported error #8937

Drizzlez opened this issue Mar 22, 2016 · 3 comments
Labels

Comments

@Drizzlez
Copy link

@Drizzlez Drizzlez commented Mar 22, 2016

Twitter mobile links are not downloading.
Youtube-dl version:
2016.03.18

Mobile Link Format
https://mobile.twitter.com/HananPak/media/grid?idx=0&tid=701050373990174724

Output

My prompt>./youtube-dl --verbose https://mobile.twitter.com/HananPak/media/grid?idx=0&tid=701050373990174724
[1] 19973
My prompt>[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'https://mobile.twitter.com/HananPak/media/grid?idx=0']
[debug] Encodings: locale ISO-8859-1, fs ISO-8859-1, out ISO-8859-1, pref ISO-8859-1
[debug] youtube-dl version 2016.03.18
[debug] Python version 2.7.9 - Linux-3.16.0-4-amd64-x86_64-with-debian-8.1
[debug] exe versions: avconv 11.4-6, avprobe 11.4-6, rtmpdump 2.4
[debug] Proxy map: {}
[generic] grid?idx=0: Requesting header
WARNING: Falling back on generic information extractor.
[generic] grid?idx=0: Downloading webpage
[generic] grid?idx=0: Extracting information
ERROR: Unsupported URL: https://mobile.twitter.com/HananPak/media/grid?idx=0
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/extractor/generic.py", line 1314, in _real_extract
    doc = compat_etree_fromstring(webpage.encode('utf-8'))
  File "./youtube-dl/youtube_dl/compat.py", line 253, in compat_etree_fromstring
    doc = _XML(text, parser=etree.XMLParser(target=etree.TreeBuilder(element_factory=_element_factory)))
  File "./youtube-dl/youtube_dl/compat.py", line 242, in _XML
    parser.feed(text)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    raise err
ParseError: unbound prefix: line 1, column 2479
Traceback (most recent call last):
  File "./youtube-dl/youtube_dl/YoutubeDL.py", line 668, in extract_info
    ie_result = ie.extract(url)
  File "./youtube-dl/youtube_dl/extractor/common.py", line 320, in extract
    return self._real_extract(url)
  File "./youtube-dl/youtube_dl/extractor/generic.py", line 1961, in _real_extract
    raise UnsupportedError(url)
UnsupportedError: Unsupported URL: https://mobile.twitter.com/HananPak/media/grid?idx=0
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 22, 2016

https://mobile.twitter.com/HananPak/media/grid?idx=0&tid=701050373990174724 is the user's page. The video page is https://mobile.twitter.com/HananPak/status/701050373990174724, and youtube-dl supports it. Would you like to download all videos of a user?

@Drizzlez
Copy link
Author

@Drizzlez Drizzlez commented Mar 22, 2016

The Video ID is the same though. When I click the link https://mobile.twitter.com/HananPak/media/grid?idx=0&tid=701050373990174724 the only thing opens is a video. What I wanted to request is that it can use this ID and download the file correctly from Twitter.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Mar 22, 2016

Seems twitter.com does not honor tid in URLs (their bugs?). https://mobile.twitter.com/HananPak/media/grid?idx=0&tid=218209350756466688 leads to the same page as https://mobile.twitter.com/HananPak/media/grid?idx=0&tid=701050373990174724, while https://mobile.twitter.com/HananPak/status/218209350756466688 shows a different page from https://mobile.twitter.com/HananPak/status/701050373990174724.

Nevertheless, supporting user pages is a good idea.

@yan12125 yan12125 added the request label Mar 22, 2016
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.