Skip to content

Instantly share code, notes, and snippets.

View chuanwang66's full-sized avatar
🎯
Focusing

Sam chuanwang66

🎯
Focusing
View GitHub Profile
common/TryExceptWrapper:
import inspect
import sys
class MyException(Exception):
pass
def show_stack(stack):
stack_len = len(stack)
自动请求http://www.qcrl.jl.cn/jiabin.aspx网页,抓取指定女嘉宾
# -*- coding: utf-8 -*-
import urllib
import urllib2
import re
def post(url, data):
req = urllib2.Request(url)
data = urllib.urlencode(data)