-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest2.py
More file actions
27 lines (21 loc) · 694 Bytes
/
test2.py
File metadata and controls
27 lines (21 loc) · 694 Bytes
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
import webbrowser, os, sys
from socket import *
import requests
import http
import urllib
port = sys.argv[1]
IP = '127.0.0.1'
same_url_part = "http://" + IP + ":" + port
def starttab(url = (same_url_part)):
webbrowser.open_new_tab(url)
def main():
starttab(same_url_part + "/website/demo.mp3")
starttab(same_url_part + "/website/demo.mp4")
starttab(same_url_part + "/index.html")
starttab(same_url_part + "/website/login.html")
starttab(same_url_part + "/website/demo.jpg")
starttab(same_url_part + "/website/demo.pdf")
starttab(same_url_part + "/website/old.html")
starttab(same_url_part + "/website/form.html")
if __name__ == "__main__":
main()