Skip to content

Commit a1ab341

Browse files
oneshot gui improvements
1 parent 2a97d8d commit a1ab341

File tree

3 files changed

+30
-2
lines changed

3 files changed

+30
-2
lines changed

sel-module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class SeleniumWireModule:
88
def __init__(self):
9-
gui_enhancements.run()
9+
gui_enhancements.run_sel()
1010
logg = turquoise_logger.Logger()
1111
path_firefox_binary = 'tools/geckodriver.exe'
1212
path_geckodriver_log = path.abspath('resources/geckodriver.log')

tools/mod_initializer.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
def run():
2+
def run_sel():
33
print(r'''
44
_____ _ _ _ _ _
55
/ ___| | | (_) | | | (_)
@@ -9,6 +9,32 @@ def run():
99
\____/ \___|_|\___|_| |_|_|\__,_|_| |_| |_|\/ \/|_|_| \___|
1010
''')
1111

12+
attribution()
13+
14+
def run_useragent():
15+
print(r'''
16+
_ _ ___ _
17+
| | | | / _ \ | |
18+
| | | |___ ___ _ __/ /_\ \ __ _ ___ _ __ | |_
19+
| | | / __|/ _ \ '__| _ |/ _` |/ _ \ '_ \| __|
20+
| |_| \__ \ __/ | | | | | (_| | __/ | | | |_
21+
\___/|___/\___|_| \_| |_/\__, |\___|_| |_|\__|
22+
__/ |
23+
|___/
24+
_____
25+
/ ___|
26+
\ `--. ___ _ _ _ __ ___ ___ _ __
27+
`--. \/ _ \| | | | '__/ __/ _ \ '__|
28+
/\__/ / (_) | |_| | | | (_| __/ |
29+
\____/ \___/ \__,_|_| \___\___|_|
30+
31+
32+
33+
''')
34+
35+
attribution()
36+
37+
def attribution():
1238
print('''\U0001F310 Developed by Gerard Sala @ https://www.github.com/scripting-drafts
1339
1440
''')

tools/useragents_listgen.py renamed to tools/useragent_sourcer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
from selenium.webdriver.firefox.options import Options
66
from selenium.webdriver.firefox.service import Service
77
from selenium.webdriver.common.by import By
8+
import mod_initializer as gui_enhancements
89

10+
gui_enhancements.run_useragent()
911
input_file = '../resources/useragents.txt'
1012
userAgents = open(input_file, 'w')
1113

0 commit comments

Comments
 (0)