-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSetup.py
More file actions
81 lines (74 loc) · 2.52 KB
/
Setup.py
File metadata and controls
81 lines (74 loc) · 2.52 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- coding: utf-8 -*-
#!/bin/env python3
# Telegram Group: http://t.me/cyberclans
# Please give me credits if you use any codes from here.
import os, sys
import configparser
re="\033[1;31m"
gr="\033[1;32m"
cy="\033[1;36m"
def banner():
os.system('clear')
print(f"""
{re}╔═╗{cy}┌─┐┌┬┐┬ ┬┌─┐
{re}╚═╗{cy}├┤ │ │ │├─┘
{re}╚═╝{cy}└─┘ ┴ └─┘┴ v1.0
""")
banner()
print(gr+"[+] Installing requierments ...")
os.system('python -m pip install pandas')
os.system('pip install apiclient')
os.system('pip install --upgrade google-api-python-client')
banner()
os.system("touch config.data")
cpass = configparser.RawConfigParser()
cpass.add_section('cred')
xid = input(gr+"[+] Enter Api Key : "+re)
cpass.set('cred', 'id', xid)
xhash = input(gr+"[+] Enter Video ID : "+re)
cpass.set('cred', 'hash', xhash)
setup = open('config.data', 'w')
cpass.write(setup)
setup.close()
print(gr+"[+] Setup # -*- coding: utf-8 -*-")
#!/bin/env python3
# Telegram Group: http://t.me/cyberclans
# Please give me credits if you use any codes from here.
import os, sys
import configparser
re = "\033[1;31m"
gr = "\033[1;32m"
cy = "\033[1;36m"
def banner():
os.system('cls' if os.name == 'nt' else 'clear')
print(f"""
{re}╔═╗{cy}┌─┐┌┬┐┬ ┬┌─┐
{re}╚═╗{cy}├┤ │ │ │├─┘
{re}╚═╝{cy}└─┘ ┴ └─┘┴ v1.0
""")
banner()
print(gr + "[+] Installing requirements ...")
os.system('python -m pip install pandas')
os.system('pip install apiclient')
os.system('pip install --upgrade google-api-python-client')
banner()
# Create config.data file
open('config.data', 'w').close()
cpass = configparser.RawConfigParser()
cpass.add_section('cred')
xid = input(gr + "[+] Enter Api Key: " + re)
cpass.set('cred', 'id', xid)
xhash = input(gr + "[+] Enter Video ID: " + re)
cpass.set('cred', 'hash', xhash)
setup = open('config.data', 'w')
cpass.write(setup)
setup.close()
print(gr + "[+] Setup complete!")
print(gr + "[+] Now you can run YouTube Scraper!")
print(gr + "[+] Make sure to read README.md before using this tool.")
print(gr + "[+] https://github.com/palahsu/YouTubeScraper/blob/master/README.md")
print("\033[92m[+] Telegram Group: \033[96mhttp://t.me/cyberclans\033[0m")
print(gr+"[+] Now you can run YouTube Scraper!")
print(gr+"[+] Make sure to read README.md before using this tool.")
print(gr+"[+] https://github.com/palahsu/YouTubeScraper/blob/master/README.md")
print("\033[92m[+] Telegram Group: \033[96mhttp://t.me/cyberclans\033[0m")