Twitter checker
Taskbar
#@0nl1ne.cc
New Registered

Status:
Offline

Posts:
10

Threads:
7

Joined:
Jul 2017

Trade Count:
0
  
0

Reputation:
0

Credits:

Likes received:



#1
Twitter checker
Just made this for my own convenience and thought some of you might find it useful - just store your wordlist.txt file in the same directory as the script and execute

[Image: 1ac5c5c39781ab93e5a2432cc1ac03c9.png]
Code:
from urllib2 import urlopen
wordlist = []
with open("wordlist.txt") as file:
    for l in file:
        wordlist.append(l.strip("\n"))
        
def fullcheck():
    for w in wordlist:
        url = ("http://www.twitter.com/" + w)
        try:
            page = urlopen(url).read()
            title = str(page).split('<title>')[1].split('</title>')[0]
            print(((title).strip("on Twitter").strip("s with replies by")).strip("/").strip("\\") + " | " + str(url))
        except:
            print("Available | " + url) 
def avcech():
    for w in wordlist:
        url = ("http://www.twitter.com/" + w)
        try:
            page = urlopen(url).read()
            continue
        except:
            print("Available | " + url)

def menu():
    print("\n" * 100)
    print('''--------------------
Twitter checker
1) Full check
2) Available
--------------------''')
    choice = input("\n")
    if choice == 1:
        fullcheck()
    elif choice == 2:
        avcech()
    else:
        print("Your nan has fat ankles")
menu()
08-20-2017, 06:50 AM
Find   Reply
Fl0w
Just Another Guy
Prime

Status:
Offline

Posts:
201

Threads:
12

Joined:
Sep 2015

Trade Count:
6
  
1

Reputation:
23

Credits:

Likes received:


Prime

#2
RE: Twitter checker
your nan has fat ankles.

thanks
Likes:
Taskbar likes this post
08-20-2017, 07:56 AM
Find   Reply




Users browsing this thread: 1 Guest(s)