import urllib2
from urllib import quote f = open("data.in", "r")
out = file("data2.out","w+")
a = 1.0
for line in f:
#print line
stri = quote(line)
url ='*******'+stri
#print url
try:
data = urllib2.urlopen(url)
except:
date = 'error'
no = str(a)
out.writelines(no+' '+ data.read()) a = a+ 1
if (a%1000==0):
print a
#print data.read() f.close() out.close()

最新文章

  1. Tomcat 中响应头信息(Http Response Header) Content-Length 和 Transfer-Encoding
  2. scikit-learn使用笔记与sign prediction简单小结
  3. MySQL数据库(表)的导入导出(备份和还原)
  4. oracle根据视图删除表
  5. [WPF实用技巧]如何使WPF的TreeView节点之间有连线
  6. hdu 3658 How many words
  7. htmlcleaner
  8. jQuery Mobile 控制 select 的显示隐藏 display none
  9. 初涉JavaScript模式 (12) : 沙箱模式
  10. 选择一个利于SEO的空间
  11. eclipse 导入 Maven 多模块项目
  12. js数据显示在文本框中(页面加载显示和按钮触动显示)
  13. TPS及计算方法
  14. Node.js学习笔记(一)基础介绍
  15. webstorm 编辑器破解 (麻麻再也不用担心过期了)
  16. Android为TV端助力 反编译
  17. JAVA9大隐式对象
  18. Confluence 6 MySQL 测试你的数据库连接
  19. abaqus查询网格相关
  20. iOS开发-- Xcode 6单元测试

热门文章

  1. BZOJ2243 (树链剖分+线段树)
  2. Unity3D ShaderLab 立方体图的反射遮罩
  3. nginx+lua项目学习
  4. gitlab The repository for this project is empty
  5. IE下背景图片 不显示问题
  6. 如何禁用ListView中的选中效果
  7. pthread的线程安全性
  8. Sed简单入门实例
  9. tyvj 1067 dp 两次LIS(nlogn)
  10. linux之pid文件