anonymous No title
No License Python
2020年10月25日
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 console
import sound

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

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

def tweet_trim(tweet):
  #tweet = tweet_filter(tweet)
  itemlist = ["@[a-zA-Z0-9_]+","[0-9]{1,2}:[0-5][0-9]","[0-9]{1,2}時[0-59]分","([0-9]|[0-2][0-9])時","[0-5][0-9]分","[1-9]{1,2}/[0-9]{1,2}",]
  for i in itemlist:
    tweet = re.sub(i,"",tweet)
  tweet = tweet.replace(" ","")
  tweet = tweet.replace(" ","")
  tweet = re.findall(r"\d+",tweet)
  return tweet

text1 = "⓪①②③④⑤⑥⑦⑧⑨"
text2 = "⓿❶❷❸❹❺❻❼❽❾"
text3 = "0123456789"
text4 = "0123456789"
text5 = "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡"

consumerkey = "7RlU5czZoXea8c1ZQ1fVCpiol"
consumersecret = "4RNWU0wyQmUxK5LGBv3dpibCJH3c26to3ykAdAX2Uhdlq9LOYt"
accesstoken = "946344237943078912-IMOxe0dDoiZ2gobNnB5nx0oK86c85F9"
accesstokensecret = "VrrQT6iQSMIFkMKAfPJYGElcw7u6lrgrc5puZxrNRw0hl"

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()

#start = time.time()
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)):
      tweet = status.full_text
      tweettime = status.created_at
    start = time.time()
    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 = tweet_trim(tweet)
    tweettime = re.findall(r"\d+",str(tweettime))
    count = len(tweet)
    #e = time.time() - start
    if(passtime in tweettime):
      print("パスワード!")
    else:
      #e = time.time() - start
      #ーprint("取得中")
      console.clear()
      sound.play_effect(name='arcade:Coin_2',volume =0.05 )
      print("取得中"+str(datetime.datetime.now()))
      time.sleep(0.00000000000001)
      break

    if(len(tweet) == 0):
      print("パスワードが見つかりませんでした。")
      sys.exit()
    if(roomid in tweet and len(tweet) >= 2):
      room_id_index = tweet.index(roomid)
      if(room_id_index == 0):
        password = str(tweet[1])
        keyboard.insert_text(password)
        keyboard.insert_text("\n")
        print("Password:"+password)
        e = time.time() - start
        print(e)
        sys.exit()
      elif(room_id_index == 1):
        password = str(tweet[0])
        keyboard.insert_text(password)
        keyboard.insert_text("\n")
        print("Password:"+password)
        e = time.time() - start
        print(e)
        sys.exit()
    elif(len(tweet) >= 1):
      password = str(tweet[0])
      keyboard.insert_text(password)
      keyboard.insert_text("\n")
      print("Password:"+password)
      e = time.time() - start
      print(e)
      sys.exit()
    else:
      password = tweet[0]
      keyboard.insert_text(password)
      keyboard.insert_text("\n")
      print("Password:"+password)
      e = time.time() - start
      print(e)
      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 console
import sound

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

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

def tweet_trim(tweet):
  #tweet = tweet_filter(tweet)
  itemlist = ["@[a-zA-Z0-9_]+","[0-9]{1,2}:[0-5][0-9]","[0-9]{1,2}時[0-59]分","([0-9]|[0-2][0-9])時","[0-5][0-9]分","[1-9]{1,2}/[0-9]{1,2}",]
  for i in itemlist:
    tweet = re.sub(i,"",tweet)
  tweet = tweet.replace(" ","")
  tweet = tweet.replace(" ","")
  tweet = re.findall(r"\d+",tweet)
  return tweet

text1 = "⓪①②③④⑤⑥⑦⑧⑨"
text2 = "⓿❶❷❸❹❺❻❼❽❾"
text3 = "0123456789"
text4 = "0123456789"
text5 = "𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟠𝟡"

consumerkey = "7RlU5czZoXea8c1ZQ1fVCpiol"
consumersecret = "4RNWU0wyQmUxK5LGBv3dpibCJH3c26to3ykAdAX2Uhdlq9LOYt"
accesstoken = "946344237943078912-IMOxe0dDoiZ2gobNnB5nx0oK86c85F9"
accesstokensecret = "VrrQT6iQSMIFkMKAfPJYGElcw7u6lrgrc5puZxrNRw0hl"

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()

#start = time.time()
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)):
      tweet = status.full_text
      tweettime = status.created_at
    start = time.time()
    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 = tweet_trim(tweet)
    tweettime = re.findall(r"\d+",str(tweettime))
    count = len(tweet)
    #e = time.time() - start
    if(passtime in tweettime):
      print("パスワード!")
    else:
      #e = time.time() - start
      #ーprint("取得中")
      console.clear()
      sound.play_effect(name='arcade:Coin_2',volume =0.05 )
      print("取得中"+str(datetime.datetime.now()))
      time.sleep(0.00000000000001)
      break

    if(len(tweet) == 0):
      print("パスワードが見つかりませんでした。")
      sys.exit()
    if(roomid in tweet and len(tweet) >= 2):
      room_id_index = tweet.index(roomid)
      if(room_id_index == 0):
        password = str(tweet[1])
        keyboard.insert_text(password)
        keyboard.insert_text("\n")
        print("Password:"+password)
        e = time.time() - start
        print(e)
        sys.exit()
      elif(room_id_index == 1):
        password = str(tweet[0])
        keyboard.insert_text(password)
        keyboard.insert_text("\n")
        print("Password:"+password)
        e = time.time() - start
        print(e)
        sys.exit()
    elif(len(tweet) >= 1):
      password = str(tweet[0])
      keyboard.insert_text(password)
      keyboard.insert_text("\n")
      print("Password:"+password)
      e = time.time() - start
      print(e)
      sys.exit()
    else:
      password = tweet[0]
      keyboard.insert_text(password)
      keyboard.insert_text("\n")
      print("Password:"+password)
      e = time.time() - start
      print(e)
      sys.exit()

Output

Run
年末年始は機械学習・深層学習を勉強しませんか?
No one still commented. Please first comment.
年末年始は機械学習・深層学習を勉強しませんか?
広告
未経験から最短でエンジニアへの転職を目指すなら