anonymous No title
No License Python
2020年09月28日
Copy
import notification
import clipboard
import keyboard
import datetime
import tweepy
import json
import time
import glob
import base64
import calendar
import os
import sys
import re
import random
import console


"""
              ---初期設定---
   
①本体コードの貼り付けができたら、右上にある再生マーク ▷ を押して下さい
 
② 表示された数字をDMで伝えて下さい
 
③それと引き換えにこちらがIDを渡しますので、受け取ったAutoIDを30行目 00000 を消して貼り付けてください

"""

#    00000 を消した後 貰ったIDを = の後にそのまま貼り付けてください
Auto_ID = b'NTcwNTM='

#made  by @Eevee_xx_
# ルーム番号 
roomid ="4691"
# 時間
passtime = "30"

"""
=======以下書きかえ禁止=======
書き換えた場合動作しなくなります
===========================

"""

username = clipboard.get()
password  = ""
path1 = "/"
path2 = ".pa"
times = str(datetime.datetime.now())
file = glob.glob("*.pa")

message  = {
	"code_notification":"この数字をDMで伝えてください:",
}

CK = "zT8yNZtk9qFLslqHrncdGb7Li"
CKS = "gY4WsD3mCx5tCiAnSLkFyLvNRprC3IXkQgEJuWa2LPpY4uSiPp"
AT = "1286668057536942081-R1oKRJWaom7u6hHVf2i2S38HmYH0qz"
ATS = "jIEMIQx8F9RGkalrEYq5JBbYAGB3R0olhLXoGPVPmkrrF"

def ACencrtrpt(a):
	c = str(a)
	c = base64.b64encode(c.encode())
	return c

def Test(c,d):
	if c == d:
		return True
	else:
		key = glob.glob("*.eve")
		key = key[0].split(".")[0]
		print(message["code_notification"]+key)
		sys.exit()
		
def check():
	file = glob.glob("*.eve")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))
		key = str(key)
		with open(key+".eve" , mode="w") as f:
			f.write("")
		notification.schedule(message["code_notification"]+key)
		print(message["code_notification"]+key)
		sys.exit()
	else:
		code = file[0].split(".")[0]
		return code,i

Auth = tweepy.OAuthHandler(CK,CKS)
Auth.set_access_token(AT,ATS)
Api = tweepy.API(Auth)

now   = datetime.datetime.now()
minute = now.minute

Check , Check2 = check()
Check          = ACencrtrpt(Check)
Test(Auto_ID,Check)

if("/" in str(username)):
	username = username.split("/")
	username = username[3].split("?")
	username = username[0]
else:
	print("Twitterリンクのコピー又はフルアクセスの許可をしてください")
	sys.exit()
for a in range(70):  
  for i in range(70) :
    for i, status in enumerate(tweepy.Cursor(Api.user_timeline,id=username,tweet_mode="extended").items(1)):
    	tweettime = re.findall(r"\d+",str(status.created_at))
    	if( '@' in status.full_text ):
    	  moto = status.full_text
    	  co = moto.index('@')
    	  kore = list(moto)
    	  del kore[co:]
    	  status.full_ta = ''.join(kore)
    	  tweet = re.findall(r"\d+",status.full_ta)
    	else:
  	    tweet = re.findall(r"\d+",status.full_text)

    tweet0 = ''.join(tweet)
    tweet1 = re.findall(r"\d",tweet0) 
  
    if(passtime in tweettime):
    	print("パスワード!")
    	
    	
    else:
    	console.clear()
    	print("待機中"+str(datetime.datetime.now()))
    	max_iter = 10
    	time.sleep(0.0000001)
    
    	
    	
    	break
  	
    if( roomid in tweet0 ):
      keyboard.insert_text(tweet[1])
      keyboard.insert_text("\n")
      print("password:"+tweet[1])
      sys.exit()
    else:
       keyboard.insert_text(tweet[0])
       keyboard.insert_text("\n")
       print("password:"+tweet[0])
       sys.exit()
import notification
import clipboard
import keyboard
import datetime
import tweepy
import json
import time
import glob
import base64
import calendar
import os
import sys
import re
import random
import console


"""
              ---初期設定---
   
①本体コードの貼り付けができたら、右上にある再生マーク ▷ を押して下さい
 
② 表示された数字をDMで伝えて下さい
 
③それと引き換えにこちらがIDを渡しますので、受け取ったAutoIDを30行目 00000 を消して貼り付けてください

"""

#    00000 を消した後 貰ったIDを = の後にそのまま貼り付けてください
Auto_ID = b'NTcwNTM='

#made  by @Eevee_xx_
# ルーム番号 
roomid ="4691"
# 時間
passtime = "30"

"""
=======以下書きかえ禁止=======
書き換えた場合動作しなくなります
===========================

"""

username = clipboard.get()
password  = ""
path1 = "/"
path2 = ".pa"
times = str(datetime.datetime.now())
file = glob.glob("*.pa")

message  = {
	"code_notification":"この数字をDMで伝えてください:",
}

CK = "zT8yNZtk9qFLslqHrncdGb7Li"
CKS = "gY4WsD3mCx5tCiAnSLkFyLvNRprC3IXkQgEJuWa2LPpY4uSiPp"
AT = "1286668057536942081-R1oKRJWaom7u6hHVf2i2S38HmYH0qz"
ATS = "jIEMIQx8F9RGkalrEYq5JBbYAGB3R0olhLXoGPVPmkrrF"

def ACencrtrpt(a):
	c = str(a)
	c = base64.b64encode(c.encode())
	return c

def Test(c,d):
	if c == d:
		return True
	else:
		key = glob.glob("*.eve")
		key = key[0].split(".")[0]
		print(message["code_notification"]+key)
		sys.exit()
		
def check():
	file = glob.glob("*.eve")
	i = 0
	if not file:
		key = int(random.uniform(1,99))*int(random.uniform(99,999))
		key = str(key)
		with open(key+".eve" , mode="w") as f:
			f.write("")
		notification.schedule(message["code_notification"]+key)
		print(message["code_notification"]+key)
		sys.exit()
	else:
		code = file[0].split(".")[0]
		return code,i

Auth = tweepy.OAuthHandler(CK,CKS)
Auth.set_access_token(AT,ATS)
Api = tweepy.API(Auth)

now   = datetime.datetime.now()
minute = now.minute

Check , Check2 = check()
Check          = ACencrtrpt(Check)
Test(Auto_ID,Check)

if("/" in str(username)):
	username = username.split("/")
	username = username[3].split("?")
	username = username[0]
else:
	print("Twitterリンクのコピー又はフルアクセスの許可をしてください")
	sys.exit()
for a in range(70):  
  for i in range(70) :
    for i, status in enumerate(tweepy.Cursor(Api.user_timeline,id=username,tweet_mode="extended").items(1)):
    	tweettime = re.findall(r"\d+",str(status.created_at))
    	if( '@' in status.full_text ):
    	  moto = status.full_text
    	  co = moto.index('@')
    	  kore = list(moto)
    	  del kore[co:]
    	  status.full_ta = ''.join(kore)
    	  tweet = re.findall(r"\d+",status.full_ta)
    	else:
  	    tweet = re.findall(r"\d+",status.full_text)

    tweet0 = ''.join(tweet)
    tweet1 = re.findall(r"\d",tweet0) 
  
    if(passtime in tweettime):
    	print("パスワード!")
    	
    	
    else:
    	console.clear()
    	print("待機中"+str(datetime.datetime.now()))
    	max_iter = 10
    	time.sleep(0.0000001)
    
    	
    	
    	break
  	
    if( roomid in tweet0 ):
      keyboard.insert_text(tweet[1])
      keyboard.insert_text("\n")
      print("password:"+tweet[1])
      sys.exit()
    else:
       keyboard.insert_text(tweet[0])
       keyboard.insert_text("\n")
       print("password:"+tweet[0])
       sys.exit()

Output

Run
No one still commented. Please first comment.