![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python爬虫
无悔_一叶扁舟
人生有一种追求不是功名利禄,而是一生无悔不为昨天而后悔,不为明天而迷茫把握好今天,谨慎的走好人生的每一步
展开
-
爬虫学习笔记--爬取豆瓣,有道,人人网的简单使用urllib库
1.爬取有道翻译 """ 通过post提交,访问有道翻译,得到翻译的数据 author:一叶扁舟 说明:使用的python3.7 """ import urllib import urllib.request # 通过抓包的方式获取的url,并不是浏览器上显示的url,或者谷歌浏览器打开开发则调试工具,查看访问请求 # url = "http://fanyi.youdao.com/trans...原创 2018-07-28 18:04:41 · 245 阅读 · 0 评论 -
python爬取腾讯招聘的职位
1.新建项目使用命令 scrapy startproject tencentcrawl 2.进入tencentcrawl\spiders scrapy genspider -t crawl tencent hr.tencent.com -t是模板的意思 3.编写items.py文件 # -*- coding: utf-8 -*- # Define here the model...原创 2018-09-16 16:31:55 · 1040 阅读 · 0 评论