) acceptable_words = [ x for x in words if len ( x ) >= MIN_WORD_LENGTH and len ( x ) <= MAX_WORD_LENGTH ] print ( f '[info] Loaded { len ( acceptable_words ) } acceptable words.' startswith ( 'xp' )] words = [] acceptable_words = [] print ( len ( target_keywords )) for word in target_keywords : while True : url = f 'https://twitter.com/i/api/i/users/username_available.json?username= { word } ' headers = { 'authorization' : 'SOME_TOKEN' , 'Cookie' : 'COOKIE_VALUE' , 'x-csrf-token' : 'CSRF_TOKEN_VALUE' , 'x-twitter-auth-type' : 'OAuth2Session' , 'User-Agent' : 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:83.0)' , 'x-twitter-active-user' : 'yes' , 'TE' : 'Trailers' , 'Accept' : '*/*' , 'Accept-Encoding' : 'gzip, deflate, br' , 'Referer' : 'https://twitter.com/settings/screen_name' ,…