文章分类 -  爬虫

摘要:知识预览 发送GET请求 发送POST请求 回到顶部 发送GET请求 直接请求 ? 1 2 3 import requests response=requests.get("https://movie.douban.com/top250") print(response.text) 发送参数 你也许 阅读全文
posted @ 2018-01-14 12:32 skyflask 阅读(146) 评论(0) 推荐(0)
摘要:知识预览 request模块 回到顶部 request模块 安装 ? 1 pip install requests 简单使用 import requests response=requests.get("https://movie.douban.com/cinema/nowplaying/beiji 阅读全文
posted @ 2018-01-14 12:31 skyflask 阅读(177) 评论(0) 推荐(0)
摘要:知识预览 beautifulsoup的简单使用 beautifulsoup的遍历文档树 beautifulsoup的搜索文档树 beautifulsoup的css选择器 回到顶部 beautifulsoup的简单使用 简单来说,Beautiful Soup是python的一个库,最主要的功能是从网页 阅读全文
posted @ 2018-01-14 12:29 skyflask 阅读(110) 评论(0) 推荐(0)
摘要:知识预览 爬虫基础概念 回到顶部 爬虫基础概念 什么是爬虫? -----请求网站并提取数据的自动化程序------- urllib模块 关于py2与py3的调用 #################################### in py2: ''' import urllib2 data= 阅读全文
posted @ 2018-01-14 12:11 skyflask 阅读(91) 评论(0) 推荐(0)