-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
installer.py
43 lines (18 loc) · 814 Bytes
/
installer.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"""
Open Crawler v 1.0.0 Installer
- Linux Installer
"""
import os
os.system("pip3 install rich")
os.system("clear")
from rich import print
print("[green] [+] Installing Requirements[/green]")
os.system("pip3 install -r requirements.txt")
print("[green] [+] Installing The Manual | You can run 'man opencrawler' now yey!! [/green]")
os.system("sudo cp opencrawler.1 /usr/local/man/man1/opencrawler.1")
print("[green] [+] Adding files to path[/green]")
files = ["search.py", "robots_txt.py", "mongo_db.py", "crawler.py", "fix_db.py", "opencrawler", "connection_tree.py", "config.py", "bad_words.txt"] # FIles which will be added to path
for file in files:
os.system(f"sudo cp {file} /usr/bin/{file}")
os.system("sudo chmod +x /usr/bin/opencrawler")
print("[green] Exited[/green]")