-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThatOneWebsite.py
More file actions
48 lines (44 loc) · 1.76 KB
/
ThatOneWebsite.py
File metadata and controls
48 lines (44 loc) · 1.76 KB
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
40
41
42
43
44
45
46
47
48
with open('history.csv', 'rb') as f:
histories = f.readlines()
blockedPrefixes = ('https://www.google.com',
'https://ngl.link',
'https://play.google.com',
'https://github.com/',
'http://cornhub.com/',
'https://www.reddit.com',
'https://m.facebook.com/',
'https://www.trustpilot.com',
'https://discord.com/',
'https://accountscenter.facebook.com',
'https://www.tiktok.com/',
'https://prnt.sc',
'https://m.youtube.com/',
'https://pastebin.com',
'https://stackoverflow.com',
'https://en.m.wikipedia.org',
'https://www.slideshare.net',
'https://www.scribd.com',
'https://l.facebook.com',
'chrome-extension://',
'https://www.youtube.com/',
'https://www.linkedin.com',
'https://excalidraw.com/',
'https://workspaceupdates.googleblog.com',
'https://www.chess.com/',
'https://www.facebook.com/',
'https://commons.libretexts.org/',
'https://lumenlearning.com/',
'https://drive.google.com',
'https://www.studocu.com',
'https://lichess.org',
'https://search.google.com/'
)
for history in histories:
#print(history)
element = history.split(b',')
#print(element[5])
urls = element[5].decode()
if urls.startswith(blockedPrefixes):
continue
else:
print(urls)