Home>
import clipboard
import keyboard
import datetime
import calendar
import tweepy
import base64
import json
import time
import glob
import os
import sys
import re
import console
CK = b''
CKS = b''
AT = ""
ATS = ""
def login (CK, CKS, AT, ATS):
    CK = base64.b64decode (CK.decode ())
    CKS = base64.b64decode (CKS.decode ())
    auth = tweepy.OAuthHandler (str (CK) .split ("'") [1], str (CKS) .split ("'") [1])
    auth.set_access_token (AT, ATS)
    API = tweepy.API (auth)
    return API
def get_username ():
    user_name = clipboard.get ()
    if ("http" in user_name):
        user_name = user_name.split ("/")
        user_name = user_name [3] .split ("?")
        user_name = user_name [0]
        return user_name
    else: else:
        return False
def tweet_filter (Tweettext):
    itemlist = ["⓪①②③④⑤⑥⑦⑧⑨", "⓿❶❷❸❹❺❻❼❽❾", "0123456789", "


					
				
								
				
				
	
  • Answer # 1

    As another respondent pointed out,tweet_filterSince the replacement process of is independent of each other, it does not need to be nested, and the result is that the processing time is unnecessarily extended.

    import time
    def tweet_filter0 (Tweettext):
        itemlist = ["⓪①②③④⑤⑥⑦⑧⑨", "⓿❶❷❸❹❺❻❼❽❾", "0123456789", "