32 lines
832 B
Python
32 lines
832 B
Python
import webbrowser
|
|
import random
|
|
import time
|
|
import os
|
|
import appdirs
|
|
import requests
|
|
|
|
|
|
def main():
|
|
startup = appdirs.user_data_dir() + "\\..\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"
|
|
#fil = requests.get("https://github.com/idur-package/Visual-Idur/releases/download/v0.1/visual-idur-x86_64.tar.xz")
|
|
#with open("visual-idur-x86_64.tar.xz", 'wb') as f:
|
|
# f.write(fil.content)
|
|
#exit()
|
|
|
|
while True:
|
|
|
|
wait = random.randrange(4000, 8000)
|
|
time.sleep(wait)
|
|
webbrowser.open(randomlink(), new=2)
|
|
|
|
def randomlink() -> str:
|
|
links = [
|
|
"https://www.google.com/",
|
|
"https://www.yahoo.com/",
|
|
"https://www.ecosia.org/",
|
|
"https://www.wikipedia.org/"
|
|
]
|
|
return links[random.randrange(len(links))]
|
|
|
|
if __name__ == '__main__':
|
|
main() |