-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagent.py
39 lines (34 loc) · 1.02 KB
/
agent.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
# -*- coding: utf-8 -*-
"""
GitHub: https://github.com/Fajarxyta
Facebook: https://facebook.com/fajarxyta15
Instagram: https://instagram.com/fajarxy_1
"""
P = '\033[0m'
H = "\033[32m"
L = '\033[4m'
I = '\033[3m'
import os
from Useragents.main import MAIN
def main():
os.system('clear')
print(f"\n\t [{I}{L}User-Agent All Platform {P}]\n\t\t [{I}{P}Code By {H}@Fajar_kyy{P}]\n\n{H}1{P}) {H}Whatmyuseragent{P}\n{H}2{P}) {H}User_agents_net{P}\n")
x = input("pilih 1/2: ")
if x == '1':
whatmyuseragent()
else:
url = 'https://user-agents.net/random'
limit = input("Limit: ")
MAIN().user_agents_net(limit, url)
def whatmyuseragent():
os.system('clear')
list_brand = MAIN().get_brand()
for z, brand in list_brand.items():
print(f'{z}) {brand["nama"]}')
try:
chose = input("Pilih: ")
MAIN().Whatmyuseragent(list_brand[chose])
except Exception as e:
print(e)
if __name__ == '__main__':
main()