Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Lucksi
GitHub Repository: Lucksi/Mr.Holmes
Path: blob/master/Core/Support/Useragent.py
1071 views
1
# ORIGINAL CREATOR: Luca Garofalo (Lucksi)
2
# AUTHOR: Luca Garofalo (Lucksi)
3
# Copyright (C) 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 Select:
11
12
nomefile = "Configuration/Configuration.ini"
13
parser = ConfigParser()
14
parser.read(nomefile)
15
useragent_file = parser["Settings"]["useragent_List"]
16
f = open(useragent_file, "r")
17
value = f.readlines()
18
f.close()
19
agent = random.choice(value).replace("\n","")
20