在IDLE 中用python 写新闻爬虫

1.在IDLE环境中,在进行文件读写时注意 路径的合法写法。php eg: import os import urllib2 url='http://biz.finance.sina.com.cn/usstock/usstock_news.php?pageIndex=1&symbol=AA' try: content=urllib2.urlopen(url).read() file
相关文章
相关标签/搜索