mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
[twitter] fix twitter video download
This commit is contained in:
parent
9f38d7d76f
commit
ac01a66b62
@ -40,7 +40,7 @@ def twitter_download(url, output_dir='.', merge=True, info_only=False, **kwargs)
|
||||
page_title = "{} [{}]".format(screen_name, item_id)
|
||||
|
||||
# FIXME: this API won't work for protected or nsfw contents
|
||||
api_url = 'https://cdn.syndication.twimg.com/tweet-result?id=%s' % item_id
|
||||
api_url = 'https://cdn.syndication.twimg.com/tweet-result?id=%s&token=!' % item_id
|
||||
content = get_content(api_url)
|
||||
info = json.loads(content)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user