Skip to content

Instantly share code, notes, and snippets.

View abcfy2's full-sized avatar
😀
Focusing

Feng Yu abcfy2

😀
Focusing
View GitHub Profile
#!/usr/bin/env python
#coding:utf8
import sys, os
import urllib2
import time
from threading import Thread
from BeautifulSoup import BeautifulSoup
import random
urlRoot = 'http://uuu.11com137aa.comwww.vvvv12.com' # 已被屏蔽--!.
@abcfy2
abcfy2 / temp.py
Last active August 29, 2015 14:06
#!/usr/bin/env python3
import requests
from lxml import html
def login(name,password):
url='http://passport.cnblogs.com/login.aspx'
session = requests.session()
ua = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36'
session.headers.update({'User-Agent': ua})