python3 网址路径中带中文的处理办法
摘要:由于python目前不能直接处理中文路径,必须要转化一下,如下例子是下载图片(名字为中文的): def getInfo(self,imageurl): response = urllib.request.urlopen(imageurl).read().decode('utf-8')# with o...
阅读全文
posted @
2014-07-20 23:03
orientwolf
阅读(1614)
推荐(0)
python3 爬虫小例子
摘要:#!/usr/bin/env python# -*- coding: utf-8 -*-import sys,reimport urllib.request,urllib.parse,http.cookiejarclass myW3(): def login(self): 'post 数据' dat...
阅读全文
posted @
2014-07-20 22:59
orientwolf
阅读(317)
推荐(0)