Skip to content

Instantly share code, notes, and snippets.

@nwiizo
Last active October 2, 2016 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nwiizo/797a4b546a32d5178c451adbfaf7a510 to your computer and use it in GitHub Desktop.
Save nwiizo/797a4b546a32d5178c451adbfaf7a510 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import subprocess
import webbrowser
import time
cmd = ["ping -c 2 8.8.8.8 -s 1272","ping6 -c 2 2001:4860:4860::8888 -s 1452","dig google.com A","dig google.com AAAA"]
url = ["http://www.kame.net/","http://www.amazon.co.jp/registry/wishlist/1R5ZE9A1TGDZJ"]
for n in cmd:
subprocess.Popen(n,shell=True)
#subprocess command
time.sleep(1)
#sleep Shell or python
for n in url:
webbrowser.open_new(n)
#browser controll
#request /img/kame-noanime-small.gif" altの値を見ればここも自動化出きる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment