This file contains hidden or 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
#!/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' # 已被屏蔽--!. |
This file contains hidden or 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
#!/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}) |