30
30
sleep (1.2 )
31
31
print ("[+] Exiting..." )
32
32
sleep (0.8 )
33
- quit ()
33
+ quit (0 )
34
34
import platform
35
35
from os import system
36
36
from rich .align import Align
93
93
sleep (1.1 )
94
94
console .clear ()
95
95
96
+ headers = {
97
+ 'User-Agent' : 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36'
98
+ }
99
+ js = ''
100
+ resp = requests .get ('https://api.github.com/repos/new92/IGFI' , headers = headers )
101
+ if resp .status_code == 200 :
102
+ js = resp .json ()
103
+
96
104
def ScriptInfo ():
97
- with open ('./files/config.json' ) as config :
98
- conf = json .load (config )
105
+ rest = requests .get ('https://api.github.com/repos/new92/IGFI/contributors' , headers = headers )
106
+ contribs = []
107
+ if rest .status_code == 200 :
108
+ jsn = rest .json ()
109
+ contribs = [jsn [i ]['login' ] for i in range (len (jsn ))]
110
+ lang = requests .get ('https://api.github.com/repos/new92/IGFI/languages' , headers = headers )
111
+ languages = list (lang .json ().keys ()) if lang .status_code == 200 else []
99
112
fsize = os .stat (__file__ ).st_size
100
- print (f"{ YELLOW } [+] Author >>> { conf ['author' ]} " )
101
- print (f"{ YELLOW } [+] Github >>> @{ conf ['author' ]} " )
102
- print (f"{ YELLOW } [+] Leetcode >>> @{ conf ['author' ]} " )
103
- print (f"{ YELLOW } [+] PyPI >>> @{ conf ['author' ]} " )
104
- print (f"{ YELLOW } [+] Contributors >>> { conf ['contributors' ]} " )
105
- print (f"{ YELLOW } [+] License >>> { conf ['lice' ]} " )
106
- print (f"{ YELLOW } [+] Natural language >>> { conf ['lang' ]} " )
107
- print (f"{ YELLOW } [+] Programming language(s) used >>> { conf ['language' ]} " )
108
- print (f"{ YELLOW } [+] Number of lines >>> { conf ['lines' ]} " )
109
- print (f"{ YELLOW } [+] Script's name >>> 'igfi'" )
110
- print (f"{ YELLOW } [+] API(s) used >>> { conf ['api' ]} " )
111
- print (f"{ YELLOW } [+] Latest update >>> { conf ['update' ]} " )
112
- print (f"{ YELLOW } [+] File size >>> { fsize } bytes" )
113
- print (f"{ YELLOW } [+] File path >>> { fpath (conf ['name' ])} " )
113
+ print (f"{ YELLOW } [+] Author | { js ['owner' ]['login' ]} " )
114
+ print (f"{ YELLOW } [+] Github | @{ js ['owner' ]['login' ]} " )
115
+ print (f"{ YELLOW } [+] Leetcode | @{ js ['owner' ]['login' ]} " )
116
+ print (f"{ YELLOW } [+] PyPI | @{ js ['owner' ]['login' ]} " )
117
+ print (f"{ YELLOW } [+] Contributors | { contribs } " )
118
+ print (f"{ YELLOW } [+] License | { js ['license' ]['spdx_id' ]} " )
119
+ print (f"{ YELLOW } [+] Programming language(s) used | { languages } " )
120
+ print (f"{ YELLOW } [+] Script's name | { js ['name' ]} " )
121
+ print (f"{ YELLOW } [+] Latest update | { js ['updated_at' ]} " )
122
+ print (f"{ YELLOW } [+] File size | { fsize } bytes" )
123
+ print (f"{ YELLOW } [+] File path | { os .path .abspath (__file__ )} " )
114
124
print (f"{ YELLOW } |======|GITHUB REPO INFO|======|" )
115
- print (f"{ YELLOW } [+] Repo name >>> { conf ['name' ]} " )
116
- print (f"{ YELLOW } [+] Repo URL >>> { conf ['url' ]} " )
117
- print (f"{ YELLOW } [+] Stars >>> { conf ['stars' ]} " )
118
- print (f"{ YELLOW } [+] Forks >>> { conf ['forks' ]} " )
119
- print (f"{ YELLOW } [+] Open issues >>> { conf ['issues' ]} " )
120
- print (f"{ YELLOW } [+] Closed issues >>> { conf ['clissues' ]} " )
121
- print (f"{ YELLOW } [+] Open pull requests >>> { conf ['prs' ]} " )
122
- print (f"{ YELLOW } [+] Closed pull requests >>> { conf ['clprs' ]} " )
123
- print (f"{ YELLOW } [+] Discussions >>> { conf ['discs' ]} " )
125
+ print (f"{ YELLOW } [+] Repo name | { js ['name' ]} " )
126
+ print (f"{ YELLOW } [+] Description | { js ['description' ]} " )
127
+ print (f"{ YELLOW } [+] Repo URL | { js ['html_url' ]} " )
128
+ print (f"{ YELLOW } [+] Stars | { js ['stargazers_count' ]} " )
129
+ print (f"{ YELLOW } [+] Forks | { js ['forks' ]} " )
130
+ print (f"{ YELLOW } [+] Watchers | { js ['subscribers_count' ]} " )
131
+ print (f"{ YELLOW } [+] Open issues | { js ['open_issues_count' ]} " )
124
132
125
133
def fpath (fname : str ):
126
134
for root , dirs , files in os .walk ('/' ):
@@ -166,13 +174,13 @@ def rmdir(dire):
166
174
167
175
def banner () -> str :
168
176
console .print ("""[bold yellow]
169
- ██╗░██████╗░███████╗██╗
170
- ██║██╔════╝░██╔════╝██║
171
- ██║██║░░██╗░█████╗░░██║
172
- ██║██║░░╚██╗██╔══╝░░██║
173
- ██║╚██████╔╝██║░░░░░██║
174
- ╚═╝░╚═════╝░╚═╝░░░░░╚═╝
175
- [/]""" )
177
+ ██╗░██████╗░███████╗██╗
178
+ ██║██╔════╝░██╔════╝██║
179
+ ██║██║░░██╗░█████╗░░██║
180
+ ██║██║░░╚██╗██╔══╝░░██║
181
+ ██║╚██████╔╝██║░░░░░██║
182
+ ╚═╝░╚═════╝░╚═╝░░░░░╚═╝
183
+ [/]""" , justify = 'center' )
176
184
177
185
def nums ():
178
186
console .print ("[bold yellow][1] Increase followers[/]" )
@@ -196,7 +204,7 @@ def main(username: str, password: str, session: str):
196
204
for row in TABLE :
197
205
table .add_row (* row )
198
206
print ("\n " )
199
- console .print ("[bold yellow][+] IGFI is a python script for increasing the number of followers of an Instagram account." )
207
+ console .print (f "[bold yellow][+] { js [ 'description' ] } " if js else ' IGFI is a python script for increasing the number of followers of an Instagram account.' )
200
208
print ("\n " )
201
209
nums ()
202
210
print ("\n " )
@@ -614,12 +622,18 @@ def main(username: str, password: str, session: str):
614
622
if __name__ == '__main__' :
615
623
sleep (2 )
616
624
clear ()
617
- if len (sys .argv ) == 1 :
618
- print (f"{ GREEN } [+] Usage >>> python3 igfi.py -u <username> -p <password>" )
619
- quit (0 )
620
625
parser = argparse .ArgumentParser (description = 'IGFI is the best tool for increasing followers on Instagram.' )
621
626
parser .add_argument ('-u' , '--username' , help = 'The username to increase their followers.' )
622
627
parser .add_argument ('-p' , '--password' , help = 'The password of your instagram account.' )
623
628
parser .add_argument ('--session' , help = 'The session file to use. To generate it: python3 cookies.py' )
624
629
args = parser .parse_args ()
625
- main (username = str (args .username ).strip ().lower (), password = str (args .password ).strip (), session = str (args .session ).replace ('\\ ' , '/' ))
630
+ if len (sys .argv ) < 3 :
631
+ print (f"{ RED } [x] Error: Missing arguments." )
632
+ sleep (0.7 )
633
+ print (f"{ GREEN } [+] Usage >>> python3 igfi.py -u <username> -p <password> --session <session_file>" )
634
+ sleep (1.5 )
635
+ username = input (f"{ YELLOW } [::] Please enter your username >>> " )
636
+ password = input (f"{ YELLOW } [::] Please enter your password >>> " )
637
+ session = input (f"{ YELLOW } [::] Please enter the session file (if created else hit <Enter>) >>> " )
638
+ args .username , args .password , args .session = username , password , session
639
+ main (username = args .username .strip ().lower (), password = args .password .strip (), session = args .session .replace ('\\ ' , '/' ))
0 commit comments