
爬虫
l3142600073
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python3.7 爬虫学习 1 获取页面
import urllib.request response = urllib.request.urlopen("http://placekitten.com/g/200/300") cat_jpg = response.read() with open('cat_200_300.jpg', 'wb') as f: f.write(cat_jpg) 获取一张猫图片 impo...原创 2019-08-03 15:42:43 · 535 阅读 · 0 评论 -
python3.7 爬虫 2 翻译文字
获取json 格式 import urllib.request import urllib.parse # 通过抓包的方式获取的url,并不是浏览器上显示的url url ="http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule&esessionFrom=" # 发送到web服务器的表单数据...原创 2019-08-03 17:25:26 · 197 阅读 · 0 评论