惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Attack and Defense Labs
Attack and Defense Labs
The GitHub Blog
The GitHub Blog
C
Check Point Blog
博客园_首页
MongoDB | Blog
MongoDB | Blog
N
Netflix TechBlog - Medium
F
Full Disclosure
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
G
GRAHAM CLULEY
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
K
Kaspersky official blog
博客园 - 司徒正美
S
Schneier on Security
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
云风的 BLOG
云风的 BLOG
Cisco Talos Blog
Cisco Talos Blog
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
V
V2EX - 技术
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Spread Privacy
Spread Privacy
罗磊的独立博客
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
SecWiki News
SecWiki News
Schneier on Security
Schneier on Security
O
OpenAI News
Jina AI
Jina AI
PCI Perspectives
PCI Perspectives
Cyberwarzone
Cyberwarzone
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog RSS Feed
I
InfoQ
D
Docker
P
Palo Alto Networks Blog
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
博客园 - Franky
B
Blog
Scott Helme
Scott Helme
博客园 - 叶小钗
D
DataBreaches.Net

博客园 - 康国庆--thinkinlove

ubuntu flash 乱码解决 Crypto ++ (cryptopp) 与加密 (1) cryptoAPI crypto API 与crypto++(前) 发布一个小的实用工具-机票助手 test scribeFire 抓取网页、以及传输网络文件产生 “1ff8” 串的原因 C#和 C++ 关于exe中导出函数限制的疑惑 中秋节体验Xmanager,vnc - 康国庆--thinkinlove linux (ubuntu) 下双屏显示解决? linux下的pdf乱码解决方法 - 康国庆--thinkinlove 针对curl程序库静态链接的问题解决办法 稳定下来了继续写 - 康国庆--thinkinlove SICP:使我着了魔 - 康国庆--thinkinlove 显示器与程序员的效率 认真学习Lisp、FP - 康国庆--thinkinlove 工作之余的休闲假期 - 康国庆--thinkinlove Glusterfs分析报告
ubuntu下使用urllib2
康国庆--thinkinlove · 2009-01-14 · via 博客园 - 康国庆--thinkinlove

1.安装python运行环境

1.安装python运行环境

2.安装python开发环境及依赖库

apt-get install python-dev

3.安装python的网络组件

apt-get install python-clientcookie

说明:安装网络组件后才可以使用urllib2及cookie相关的库

2.安装python开发环境及依赖库

apt-get install python-dev

3.安装python的网络组件

apt-get install python-clientcookie


说明:安装网络组件后才可以使用urllib2及cookie相关的库


引用 http://blog.csdn.net/digmouse/archive/2008/12/17/3537219.aspx

我就说 ubuntu 的下面 python应用这么多,怎么写个小爬虫 还不让用urllib2了。。

这个问题郁闷我好久,今天实在要用这个了,一搜找到了上面的。恩。。实在太 disgusted了。

恩,最后发现问题是本地目录下有个urllib.py  的文件。 



结论就是 记住 python 是优先搜索 当前目录的!!