Skip to content

Commit

Permalink
forgot to remove headless in unfollow
Browse files Browse the repository at this point in the history
  • Loading branch information
onemanbuilds committed Oct 30, 2020
1 parent a419409 commit 829d3ae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,8 @@ dmypy.json
output/main.exe
output/SpotifyFollowBot.exe
SpotifyFollowBot.zip
SpotifyFollowBot/chromedriver.exe
SpotifyFollowBot/combos.txt
SpotifyFollowBot/proxies.txt
SpotifyFollowBot/SpotifyFollowBot.exe
SpotifyFollowBot/useragents.txt
7 changes: 5 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from os import name,system
from sys import stdout
from concurrent.futures import ThreadPoolExecutor
from time import sleep

class Main:
def clear(self):
Expand Down Expand Up @@ -107,6 +108,7 @@ def Follow(self,username,password):

if follow_button.text == "FOLLOW":
follow_button.click()
sleep(1)
self.PrintText(Fore.CYAN,Fore.RED,'FOLLOWED',f'{username}:{password}')
elif follow_button.text == "FOLLOWING":
self.PrintText(Fore.RED,Fore.CYAN,'FOLLOWING',f'{username}:{password}')
Expand All @@ -123,8 +125,8 @@ def UnFollow(self,username,password):
try:
options = Options()

if self.headless == 1:
options.add_argument('--headless')
#if self.headless == 1:
# options.add_argument('--headless')

options.add_argument(f'--user-agent={self.GetRandomUserAgent()}')
options.add_argument('no-sandbox')
Expand Down Expand Up @@ -154,6 +156,7 @@ def UnFollow(self,username,password):

if follow_button.text == "FOLLOWING":
follow_button.click()
sleep(1)
self.PrintText(Fore.CYAN,Fore.RED,'UNFOLLOWED',f'{username}:{password}')
elif follow_button.text == "FOLLOW":
self.PrintText(Fore.RED,Fore.CYAN,'NOT FOLLOWING',f'{username}:{password}')
Expand Down

0 comments on commit 829d3ae

Please sign in to comment.