Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
-Removed fake_useragent
-Added new useragent rotation
-Fixed readfile encoding issue
-Added new Ascii Art
  • Loading branch information
onemanbuilds committed Nov 8, 2020
1 parent 12fd1bd commit 137595e
Show file tree
Hide file tree
Showing 4 changed files with 2,198 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,4 @@ output/SpotifyAccountCreator.exe
SpotifyAccountCreator.zip
SpotifyAccountCreator/proxies.txt
SpotifyAccountCreator/SpotifyAccountCreator.exe
SpotifyAccountCreator/useragents.txt
30 changes: 16 additions & 14 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from string import ascii_letters,digits
from colorama import init,Style,Fore
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
from threading import Thread,Lock,active_count
from time import sleep

Expand All @@ -24,10 +23,14 @@ def SetTitle(self,title_name:str):
system("title {0}".format(title_name))

def ReadFile(self,filename,method):
with open(filename,method) as f:
with open(filename,method,encoding='utf8') as f:
content = [line.strip('\n') for line in f]
return content

def GetRandomUserAgent(self):
useragents = self.ReadFile('useragents.txt','r')
return choice(useragents)

def PrintText(self,bracket_color:Fore,text_in_bracket_color:Fore,text_in_bracket,text):
self.lock.acquire()
stdout.flush()
Expand Down Expand Up @@ -62,14 +65,14 @@ def __init__(self):
self.SetTitle('One Man Builds Spotify Account Creator Tool')
self.clear()
self.title = Style.BRIGHT+Fore.RED+"""
____ ___ ____ ___ _ ____ _ _ ____ ____ ____ ____ _ _ _ _ ___
[__ |__] | | | | |___ \_/ |__| | | | | | | |\ | |
___] | |__| | | | | | | |___ |___ |__| |__| | \| |
____ ____ ____ ____ ___ ____ ____
| |__/ |___ |__| | | | |__/
|___ | \ |___ | | | |__| | \
╔════════════════════════════════════════════════╗
╔═╗╔═╗╔═╗╔╦╗╦╔═╗╦ ╦ ╔═╗╔═╗╔═╗╔═╗╦ ╦╔╗╔╔╦╗
╚═╗╠═╝║ ║ ║ ║╠╣ ╚╦╝ ╠═╣║ ║ ║ ║║ ║║║║ ║
╚═╝╩ ╚═╝ ╩ ╩╚ ╩ ╩ ╩╚═╝╚═╝╚═╝╚═╝╝╚╝ ╩
╔═╗╦═╗╔═╗╔═╗╔╦╗╔═╗╦═╗
║ ╠╦╝║╣ ╠═╣ ║ ║ ║╠╦╝
╚═╝╩╚═╚═╝╩ ╩ ╩ ╚═╝╩╚═
╚════════════════════════════════════════════════╝
"""
Expand All @@ -83,7 +86,6 @@ def __init__(self):
self.threads = int(input(Style.BRIGHT+Fore.CYAN+'['+Fore.RED+'>'+Fore.CYAN+'] Threads: '))
self.birth_year_start = int(input(Style.BRIGHT+Fore.CYAN+'['+Fore.RED+'>'+Fore.CYAN+'] Birth year start: '))
self.birth_year_end = int(input(Style.BRIGHT+Fore.CYAN+'['+Fore.RED+'>'+Fore.CYAN+'] Birth year end: '))
self.ua = UserAgent()
self.lock = Lock()
print('')

Expand All @@ -96,10 +98,10 @@ def GenUsername(self,gender):

country = choice(country_codes)

URL = "https://fakenamegenerator.com/gen-{0}-{1}-{2}.php".format(gender,country,country)
URL = f"https://fakenamegenerator.com/gen-{gender}-{country}-{country}.php"

headers = {
'User-Agent': self.ua.random
'User-Agent': self.GetRandomUserAgent()
}

response = requests.get(URL,headers=headers).text
Expand Down Expand Up @@ -144,7 +146,7 @@ def GenCredentailsMethod2(self):

def TitleUpdate(self):
while True:
self.SetTitle('One Man Builds Spotify Account Creator ^| CREATED: {0} ^| RETRIES: {1} ^| THREADS: {2}'.format(self.createds,self.retries,active_count()-1))
self.SetTitle(f'One Man Builds Spotify Account Creator ^| CREATED: {self.createds} ^| RETRIES: {self.retries} ^| THREADS: {active_count()-1}')
sleep(0.1)

def SpotifyCreator(self):
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
requests==2.24.0
fake_useragent==0.1.11
colorama==0.4.4
beautifulsoup4==4.9.3
Loading

0 comments on commit 137595e

Please sign in to comment.