This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
common/TryExceptWrapper: | |
import inspect | |
import sys | |
class MyException(Exception): | |
pass | |
def show_stack(stack): | |
stack_len = len(stack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
自动请求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) |
OlderNewer