List all azure containers in Python

Standard
from azure.storage.blob import BlobService
 
blob_service=BlobService(account_name='x', account_key='x', )
 
marker=None
 
while True:
  containers = blob_service.list_containers(marker=marker)
  for c in containers: 
    print c.name
 
  if containers.next_marker:
    marker = containers.next_marker
  else:
    break

python多线代理抓取验证范例

Standard

之前批量管理机器都直接用shell,最近也想赶赶时髦试着用python来写写看. 找了个多线代理抓取验证的小程序,以此做范例来学习理解python.里面涉及到多线程及python的基础,看一遍理解了基本上也就算入门了. 这个程序不是我写的,我只是稍微改了下再加了点注释,原作者和出处我在网上也没能搜不到-_- 代码...