anonymous No title
No License Python
2020年10月17日
Copy
import notification
import clipboard
import keyboard
import datetime
import tweepy
import json
import time
import glob
import calendar
import os
import sys
import re


# ""はけさないでね☺︎

# ルーム番号
roomid = "0000" 
# パスツイ分
passtime = "33"



username = clipboard.get()
password  = ""
path1 = "/"
path2 = ".pa"
times = str(datetime.datetime.now())
file = glob.glob("*.pa")
	
text1 = "⓪①②③④⑤⑥⑦⑧⑨"
text2 = "⓿❶❷❸❹❺❻❼❽❾"
text3 = "0123456789"
text4 = "0123456789"
text5 = "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡"

b6ck = b'V09yaVdwZFRmSHh2OWVpWVZ0NDFIYktFRg=='
b6cks = b'RVFNNmpvRDZyTThXRnlBTm5qUTlDMHIyVERIZnlsSGd3emVUTmpoMXJCRGZReUZoWlU='

consumerkey = "jCaOKgiyPYyToOkrLX2nIN0no"
consumersecret = "dkpNhenKhbwPRbte7EEiiWXaev6gutBX2ztKLtF5XnuyC8HJNh"
accesstoken = "739121353945538561-JcKN59xjs12pIfYFe9dcJmReh20CSr5"
accesstokensecret = "4xhvxpllulowZQRCglCyQbQEGRxUSq9kqJ4Fsr5fw41bJ"


Auth = tweepy.OAuthHandler(consumerkey,consumersecret)
Auth.set_access_token(accesstoken,accesstokensecret)
Api = tweepy.API(Auth)

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

if("/" in str(username)):
	username = username.split("/")
	username = username[3].split("?")
	username = username[0]
else:
	print("パスツイ主のリンクをコピーしてください")
	sys.exit()

for i, status in enumerate(tweepy.Cursor(Api.user_timeline,id=username,tweet_mode="extended").items(1)):
	tweet = status.full_text
	tweettime = status.created_at
	
a = 0
for i in text1:
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1
a = 0
for i in text2:
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1
a = 0
for i in text4: 
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1	
a = 0
for i in text5:
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1	


	
tweet = re.findall(r"\d+",tweet)
tweettime = re.findall(r"\d+",str(tweettime))

count = len(tweet)

# Just パスツイ
if(passtime in tweettime):
	print("loading...")
else:
    	
    	print("パスツイ待機中")
    	print(datetime.datetime.now())
    	max_iter = 10
    	time.sleep(0.0000001)
    

if(len(tweet) == 0):
   print("パスワードが見つかりませんでした。")
   sys.exit()
elif(roomid in tweet and count >= 2):
	roomidindex = tweet.index(roomid)
	password = tweet[roomidindex+1]
elif(count == 1):
	password = tweet[0]
elif(count >= 2):
	if(int(len(tweet[0])) == 2 and int(len(tweet[1]) == 2)):
		password = tweet[2]


if(password == ""):
	print("対応していない形式です。")
else:
	notification.schedule(password)
	keyboard.insert_text(password)
	keyboard.insert_text("\n")
	print("Password:"+password)
import notification
import clipboard
import keyboard
import datetime
import tweepy
import json
import time
import glob
import calendar
import os
import sys
import re


# ""はけさないでね☺︎

# ルーム番号
roomid = "0000" 
# パスツイ分
passtime = "33"



username = clipboard.get()
password  = ""
path1 = "/"
path2 = ".pa"
times = str(datetime.datetime.now())
file = glob.glob("*.pa")
	
text1 = "⓪①②③④⑤⑥⑦⑧⑨"
text2 = "⓿❶❷❸❹❺❻❼❽❾"
text3 = "0123456789"
text4 = "0123456789"
text5 = "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡"

b6ck = b'V09yaVdwZFRmSHh2OWVpWVZ0NDFIYktFRg=='
b6cks = b'RVFNNmpvRDZyTThXRnlBTm5qUTlDMHIyVERIZnlsSGd3emVUTmpoMXJCRGZReUZoWlU='

consumerkey = "jCaOKgiyPYyToOkrLX2nIN0no"
consumersecret = "dkpNhenKhbwPRbte7EEiiWXaev6gutBX2ztKLtF5XnuyC8HJNh"
accesstoken = "739121353945538561-JcKN59xjs12pIfYFe9dcJmReh20CSr5"
accesstokensecret = "4xhvxpllulowZQRCglCyQbQEGRxUSq9kqJ4Fsr5fw41bJ"


Auth = tweepy.OAuthHandler(consumerkey,consumersecret)
Auth.set_access_token(accesstoken,accesstokensecret)
Api = tweepy.API(Auth)

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

if("/" in str(username)):
	username = username.split("/")
	username = username[3].split("?")
	username = username[0]
else:
	print("パスツイ主のリンクをコピーしてください")
	sys.exit()

for i, status in enumerate(tweepy.Cursor(Api.user_timeline,id=username,tweet_mode="extended").items(1)):
	tweet = status.full_text
	tweettime = status.created_at
	
a = 0
for i in text1:
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1
a = 0
for i in text2:
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1
a = 0
for i in text4: 
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1	
a = 0
for i in text5:
	if(i in tweet):
		tweet = tweet.replace(i,text3[a])
	a = a + 1	


	
tweet = re.findall(r"\d+",tweet)
tweettime = re.findall(r"\d+",str(tweettime))

count = len(tweet)

# Just パスツイ
if(passtime in tweettime):
	print("loading...")
else:
    	
    	print("パスツイ待機中")
    	print(datetime.datetime.now())
    	max_iter = 10
    	time.sleep(0.0000001)
    

if(len(tweet) == 0):
   print("パスワードが見つかりませんでした。")
   sys.exit()
elif(roomid in tweet and count >= 2):
	roomidindex = tweet.index(roomid)
	password = tweet[roomidindex+1]
elif(count == 1):
	password = tweet[0]
elif(count >= 2):
	if(int(len(tweet[0])) == 2 and int(len(tweet[1]) == 2)):
		password = tweet[2]


if(password == ""):
	print("対応していない形式です。")
else:
	notification.schedule(password)
	keyboard.insert_text(password)
	keyboard.insert_text("\n")
	print("Password:"+password)

Output

Run
No one still commented. Please first comment.