Skip to content

Commit 778db63

Browse files
Update scp_foundation.py
1 parent aa71308 commit 778db63

File tree

1 file changed

+45
-6
lines changed

1 file changed

+45
-6
lines changed

scp_foundation.py

Lines changed: 45 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,68 @@
77
colorama.init(autoreset=True)
88

99

10-
def speak(talk):
10+
def casper_speak(talk):
1111
engine = pyttsx3.init("sapi5")
1212
engine.setProperty('rate', 150)
1313
voices = engine.getProperty('voices')
14-
engine.setProperty('voice', voices[2].id)
14+
engine.setProperty('voice', voices[1].id)
1515
engine.say(talk)
1616
engine.runAndWait()
1717

1818

19+
def progress(percent=0, width=30):
20+
21+
symbol = width * percent // 100
22+
blanks = width - symbol
23+
24+
print('\r[ ', Fore.GREEN + symbol * "█", blanks*' ', ' ]', f' {percent:.0f}%', sep='',
25+
end='', flush=True)
26+
27+
print("")
28+
print(Fore.YELLOW + " Connecting SCP Foundation terminal")
29+
for i in range(101):
30+
progress(i)
31+
time.sleep(0.01)
32+
33+
print()
34+
print(Fore.GREEN + " Systems online")
35+
print("")
36+
37+
1938
print('''
2039
█▀▀▀█ █▀▀█ █▀▀█ █▀▀▀ █▀▀▀█ █ █ █▄ █ █▀▀▄ █▀▀█ ▀▀█▀▀ ▀█▀ █▀▀▀█ █▄ █
2140
▀▀▀▄▄ █ █▄▄█ █▀▀▀ █ █ █ █ █ █ █ █ █ █▄▄█ █ █ █ █ █ █ █
2241
█▄▄▄█ █▄▄█ █ █ █▄▄▄█ █▄▄█ █ ▀█ █▄▄▀ █ █ █ ▄█▄ █▄▄▄█ █ ▀█
2342
SECURE ● CONTAIN ● PROTECT''')
43+
print("")
44+
print(Back.RED + " WARNING. THE SCP FOUNDATION DATABASE IS CLASSIFIED. UNAUTHORIZED PERSONAL IS STRICTLY PROHIBITED. ".center(100))
45+
casper_speak("WARNING. THE SCP FOUNDATION DATABASE IS CLASSIFIED. UNAUTHORIZED PERSONAL IS STRICTLY PROHIBITED.")
46+
dum = input(" Enter login credentials: ")
2447

48+
print("Validating credentials...")
49+
casper_speak("Validating credentials")
50+
time.sleep(0.05)
51+
print("Clearance granted.")
52+
casper_speak("Clearance granted.")
2553

26-
usr = input("Enter SCP item number: ")
54+
casper_speak("Enter SCP item number.")
55+
usr = input(" Enter SCP item number: ")
2756

2857
r = requests.get(f'https://scp-wiki.wikidot.com/scp-{usr}')
2958
soup = BeautifulSoup(r.content, 'html.parser')
3059
s = soup.find('div', id='page-content')
3160

3261
paras = len(s.find_all("p"))
3362

63+
print(Fore.YELLOW + f" Accessing SCP-{usr} documents")
64+
for i in range(101):
65+
progress(i)
66+
time.sleep(0.01)
67+
68+
print()
69+
print(Fore.BLUE + " Access granted")
70+
print("")
71+
3472
print(Fore.GREEN + soup.title.text.center(100))
3573
print("")
3674

@@ -40,6 +78,7 @@ def speak(talk):
4078
bro = f"{s.find_all('p')[0].text}\n"
4179
print(Fore.YELLOW + bro.center(100))
4280

81+
4382
try:
4483
for i in num_list:
4584
yo = f"{s.find_all('p')[i].text}\n"
@@ -49,13 +88,13 @@ def speak(talk):
4988
print(Fore.RED + "<<< END OF DOCUMENT >>>".center(100))
5089

5190

52-
speak(f"Item number : SCP-{usr}")
91+
casper_speak(f"Item number : SCP-{usr}")
5392

5493
sis = s.find_all('p')[2].text
55-
speak(sis)
94+
casper_speak(sis)
5695

5796
lines = s.find_all('p')[3]
58-
speak(lines)
97+
casper_speak(lines)
5998

6099

61100
time.sleep(1200)

0 commit comments

Comments
 (0)