Commit cd5c92b6 authored by Francesco Poldi's avatar Francesco Poldi

#186 args fix

parent e8e1f695
...@@ -111,7 +111,7 @@ class Twint: ...@@ -111,7 +111,7 @@ class Twint:
break break
if self.config.Count: if self.config.Count:
verbose.Count(self.count, self.config.Username) verbose.Count(self.count, self.config)
def run(config): def run(config):
get_event_loop().run_until_complete(Twint(config).main()) get_event_loop().run_until_complete(Twint(config).main())
......
def Count(count, username): def Count(count, config):
msg = "[+] Finished: Successfully collected " msg = "[+] Finished: Successfully collected "
if config.Followers: if config.Followers:
msg += f"all {count} users who follow @{username}" msg += f"all {count} users who follow @{config.Username}"
elif config.Following: elif config.Following:
msg += f"all {count} users who @{username} follows" msg += f"all {count} users who @{config.Username} follows"
elif config.Favorites: elif config.Favorites:
msg += f"{count} Tweets that @{username} liked" msg += f"{count} Tweets that @{config.Username} liked"
else: else:
msg += f"{count} Tweets" msg += f"{count} Tweets"
if config.Username: if config.Username:
msg += f" from @{username}" msg += f" from @{config.Username}"
msg += "." msg += "."
print(msg) print(msg)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment