Python 模拟登录及表单提交

 # -*- coding: utf-8 -*-  
 import re  
 import urllib  
 import urllib2  
 import cookielib  
   
 #获取CSDN博客标题和正文  
 url = "http://blog.csdn.net/[username]/archive/2010/07/05/5712850.aspx"  
 sock = urllib.urlopen(url)  
 html = sock.read()  
 sock.close()  
 content = re.findall('(?<=blogstory">).*(?=

上一篇:
下一篇:

相关文章:

Categories: 博客记录

0 Responses so far.

Leave a Reply