mirror of
https://github.com/bellingcat/snscrape.git
synced 2026-06-11 11:58:28 +03:00
Fix Twitter username length limit
Although 15 characters is the official, current limit, there are accounts with longer usernames. 20 is the longest observed example, but it's unclear what the true limit is.
This commit is contained in:
@@ -1539,7 +1539,7 @@ class TwitterUserScraper(TwitterSearchScraper):
|
||||
|
||||
@staticmethod
|
||||
def is_valid_username(s):
|
||||
return 1 <= len(s) <= 15 and s.strip(string.ascii_letters + string.digits + '_') == ''
|
||||
return 1 <= len(s) <= 20 and s.strip(string.ascii_letters + string.digits + '_') == ''
|
||||
|
||||
@classmethod
|
||||
def _cli_setup_parser(cls, subparser):
|
||||
|
||||
Reference in New Issue
Block a user