[twitter] match /video/ tweet urls
This commit is contained in:
@@ -749,7 +749,7 @@ class TwitterTweetExtractor(TwitterExtractor):
|
|||||||
"""Extractor for individual tweets"""
|
"""Extractor for individual tweets"""
|
||||||
subcategory = "tweet"
|
subcategory = "tweet"
|
||||||
pattern = (BASE_PATTERN + r"/([^/?#]+|i/web)/status/(\d+)"
|
pattern = (BASE_PATTERN + r"/([^/?#]+|i/web)/status/(\d+)"
|
||||||
r"/?(?:$|\?|#|photo/)")
|
r"/?(?:$|\?|#|photo/|video/)")
|
||||||
example = "https://twitter.com/USER/status/12345"
|
example = "https://twitter.com/USER/status/12345"
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
|||||||
@@ -539,6 +539,13 @@ You’ll be able to receive four Galarian form Pokémon with Hidden Abilities, p
|
|||||||
"#class" : twitter.TwitterTweetExtractor,
|
"#class" : twitter.TwitterTweetExtractor,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"#url" : "https://twitter.com/perrypumas/status/1065692031626829824/video/1",
|
||||||
|
"#comment" : "/video/ URL",
|
||||||
|
"#category": ("", "twitter", "tweet"),
|
||||||
|
"#class" : twitter.TwitterTweetExtractor,
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"#url" : "https://twitter.com/morino_ya/status/1392763691599237121",
|
"#url" : "https://twitter.com/morino_ya/status/1392763691599237121",
|
||||||
"#comment" : "retweet with missing media entities (#1555)",
|
"#comment" : "retweet with missing media entities (#1555)",
|
||||||
|
|||||||
Reference in New Issue
Block a user