Python爬虫
文章平均质量分 84
学习笔记
Shiro to kuro
学无止境
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ubuntu 16.04安装Python3.6.2
Ubuntu 16.04默认安装的有Python2.7和Python3.5,但有的时候项目需要更高版本,所以需要安装其他版本的Python,我这里需要使用到Python3.6.2. Python官网下载地址 选择自己要安装的版本,复制下载连接,进入ubuntu控制台 #下载Python wget https://www.python.org/ftp/python/3.6.2/Python-...原创 2019-01-17 10:43:20 · 958 阅读 · 0 评论 -
Ubuntu 16.04 apt-get 换源
使用Ubuntu部署一个python项目,需要用到python3环境,所以要安装pip3,使用 sudo apt install python3-pip 来安装pip3,一直安装失败,后来百度了以下发现是apt的源的问题,默认是国外的源,下载比较慢,并且容易出现下载失败 所以在这里换成国内的源就好了。 # 进入源目录 cd /etc/apt # 备份文件 cp sources....原创 2019-01-18 10:33:07 · 1090 阅读 · 0 评论 -
Python3 Requests库基础使用
实例引入 各种请求方式 import requests response = requests.get('https://www.baidu.com') print(type(response)) print(response.status_code) print(type(response.text)) print(response.text) print(response.cookies) ...原创 2019-08-30 10:44:13 · 244 阅读 · 0 评论 -
Python3 正则表达式基础
此文为学习笔记 正则表达式 re.match re.match 尝试从字符串的起始位置匹配一个模式,如果不是起始位置匹配成功的话, match()就返回none re.match(pattern, string, flags=0) 最常规的匹配 import re content = 'Hello 123 4567 World_This is a Regex Demo' print(len(c...原创 2019-08-30 10:50:03 · 174 阅读 · 0 评论 -
BeautifulSoup库
python3爬虫学习笔记 BeautifulSoup 基本使用 html = ''' <html><head><title>The Dormouse's story</title></head> <body> <p class="title" name="dromouse"><b>The Dormou...原创 2019-09-02 14:13:18 · 593 阅读 · 0 评论 -
pyquery库基础
python3爬虫学习笔记 pyquery 初始化 字符串初始化 html = ''' <div> <ul> <li class="item-0">first item</li> <li class="item-1"><a href="link2.html">second item<...原创 2019-09-03 14:06:45 · 376 阅读 · 0 评论
分享