diff --git a/core/repl_prompt.py b/core/repl_prompt.py index c6e4b06..55227bf 100644 --- a/core/repl_prompt.py +++ b/core/repl_prompt.py @@ -114,9 +114,9 @@ def repl(): # Read–eval–print loop elif choice == 11: while 1: - print("\n1.Facebook \n2.Twitter \n3.Instagram\n") - username = input("Username >> ") + print("\n1.Facebook \n2.Twitter \n3.Instagram\n4.Github") choice = input("choice >> ") + username = input("Username >> ") break user(choice,username) continue diff --git a/plugins/Username.py b/plugins/Username.py index 9232efc..d7c546b 100644 --- a/plugins/Username.py +++ b/plugins/Username.py @@ -13,6 +13,9 @@ def user(choice,username): elif choice == '3': Instagram(username) return() + elif choice == '4': + Github(username) + return() else: exit() @@ -133,5 +136,10 @@ def ScrapTweets(username): description = api.blocks_ids(screen_name) print("This User is blocked by : " + str(description)) - - +def Github(username): + try: + Response = requests.get("https://api.github.com/users/ishanbatish") + print(Response.text) + except Exception as e: + print("User Not found" + str(e)) + print() diff --git a/plugins/api.py b/plugins/api.py index dcd80fd..f539b27 100644 --- a/plugins/api.py +++ b/plugins/api.py @@ -1,9 +1,9 @@ def phoneapis(): - api= "e01791e4d18fbbdfa0c9033bf207decd,2f8c8e865a0b25bbf4da08c4db039b8d" + api= "ecf584dd7bccdf2c152fdf3f5595ba20" return str(api) def ipstack(): - api="276cfee2c31729505691e515e8321a02" + api="406792616a740641c6a0588a0ee1c509" return str(api) def gmap(): - api="AIzaSyAKGik6Fok3_mbIsgquaAnDGNy-h_AjhVw" + api="AIzaSyBY9Rfnjo3UWHddicUrwHCHY37OoqxI478" return str(api)