packagemain
//51cto自动领豆
import(
"github.com/crufter/goquery"
"fmt"
"math/rand"
"net/http/cookiejar"
"net/http"
"net/url"
"io/ioutil"
"strconv"
)
//用户名和密码
const(
NAME="username"
PWD="password"
)
funcmain(){
//设置cookie
cookieJar,_:=cookiejar.New(n..
分类:
其他好文 时间:
2017-09-25 19:06:19
阅读次数:
117
#!/usr/bin/python
#coding:UTF-8
importurllib,urllib2,cookielib,time,re,random
classLogin:
_loginurl=‘http://home.51cto.com/index.php?s=/Index/doLogin‘
_ua=‘*****‘#username
_ps=‘*****‘#password
_re=‘src="(.+?)"‘
_headers=[(‘User-agent‘,‘Mozilla/4.0(compati..
分类:
编程语言 时间:
2015-08-19 17:43:20
阅读次数:
178