Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Lucksi
GitHub Repository: Lucksi/Mr.Holmes
Path: blob/master/Core/Support/Proxies.py
1071 views
1
# ORIGINAL CREATOR: Luca Garofalo (Lucksi)
2
# AUTHOR: Luca Garofalo (Lucksi)
3
# Copyright (C) 2021-2023 Lucksi <[email protected]>
4
# License: GNU General Public License v3.0
5
6
import random
7
from configparser import ConfigParser
8
9
10
class proxy:
11
12
nomefile = "Configuration/Configuration.ini"
13
Parser = ConfigParser()
14
Parser.read(nomefile)
15
Proxy_file = Parser["Settings"]["Proxy_List"]
16
f = open(Proxy_file, "r")
17
value = f.readlines()
18
f.close()
19
choice1 = random.choice(value)
20
choice2 = choice1.split(":", 1)
21
choice3 = choice2[0]
22
23
final_proxis = {
24
'http': "//" + choice1,
25
'https': "//" + choice1,
26
}
27
28