From c08f7cc3483d69a8ad3568f3851214de3eb218a5 Mon Sep 17 00:00:00 2001 From: Vaibhav Singh Date: Sun, 27 Aug 2017 01:56:14 +0530 Subject: [PATCH] bug fix --- README.md | 1 + StalkPy.py | 10 +++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 802882a..935d368 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ python StalkPy.py - [ ] check list of browser and open accordingly - [ ] Command line addition of accounts to `Config.json` - [ ] check the validity of username. +- [ ] handle case if no social account found - [ ] test cross plateform support ## Issues diff --git a/StalkPy.py b/StalkPy.py index ade7dfe..5ddb9c3 100644 --- a/StalkPy.py +++ b/StalkPy.py @@ -20,13 +20,12 @@ # you can find your copy of the License # https://vaibhavsingh97.mit-license.org/ #----------------------------------------------------------------------------- -from selenium import webdriver -from selenium.webdriver.common.keys import Keys import sys import json import requests import os -import threading +from selenium import webdriver +from selenium.webdriver.common.keys import Keys from clint.textui import colored, puts @@ -106,7 +105,6 @@ def OpenLinks(self, user): puts(colored.green(social_account_name + ": ") + colored.blue(CleanedLink(self.data[social_account_name], user))) r.close() - notification(3) if __name__ == '__main__': @@ -119,6 +117,4 @@ def OpenLinks(self, user): for i in range(1, len(sys.argv)): space() puts(colored.magenta("User: %s" % sys.argv[i])) - for t in range(10): - t = threading.Thread(target=StalkPy().OpenLinks(sys.argv[i])) - t.start() + StalkPy().OpenLinks(sys.argv[i])