最近开始学爬虫,第一步是安装BeautifulSoup这个库,其实我对于安装库并不是很熟悉,借这次机会总结一下安装库的过程。 一、下载库文件 二、解压(下载到的文件可能是.tar.gz文件,这种文件需要解压一次变成.tar文件,再解压一次变成易读文件,解压工具7z即可) 三、找到“setup.py” ...
分类:
编程语言 时间:
2021-06-02 13:17:41
阅读次数:
0
环境准备 0. 服务器环境 系统版本 IP 配置 主机名 CentOS Linux release 7.4.1708 192.168.1.183 8核32g 40G磁盘 node1 CentOS Linux release 7.4.1708 192.168.1.185 4核8g 40G磁盘 node ...
分类:
其他好文 时间:
2021-06-02 13:15:54
阅读次数:
0
有时候需要查看一些日志文件,然后要从底部开始查看的话 可以按 shift+g 即可跳到文件底部 要返回文件顶部的时候 按 gg即可 ...
分类:
系统相关 时间:
2021-06-02 13:09:42
阅读次数:
0
import requestsimport parselimport timeimport csv f = open('二手房信息.csv', mode='a', encoding='utf-8-sig', newline='')csv_writer = csv.DictWriter(f, fiel ...
分类:
编程语言 时间:
2021-06-02 13:08:40
阅读次数:
0
使用网上的方法,在crontab中加入PYTHONIOENCODING=utf-8,并没有解决。 有效解决办法: * * * * * export LANG=zh_CN.utf-8;python yourScipt.py 在调用python脚本前先export LANG变量,他修改的是crontab ...
分类:
编程语言 时间:
2021-06-02 13:03:19
阅读次数:
0
Checking out and building Chromium on Linux https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/linux/build_instructions.md ...
分类:
系统相关 时间:
2021-06-02 12:50:21
阅读次数:
0
一、环境 *centos7.6 二、安装步骤 *设置yum源 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo yum-config-manager --add-repo htt ...
分类:
其他好文 时间:
2021-06-02 12:47:47
阅读次数:
0
参考如下: Installing WebLogic 12.1.3 with Docker (easier) If you work on a Linux-based machine as your development environment and you aren't familiar wit ...
分类:
Web程序 时间:
2021-06-02 12:45:31
阅读次数:
0
本文主要介绍在Linux(Ubuntu Debian LinuxMint)上安装python3.7.1,通过python3.7.1源码安装,包括python3的安装步骤。并且兼容python2, 实现python2与python3共存。 原文地址:Linux(Ubuntu Debian LinuxM ...
分类:
编程语言 时间:
2021-06-02 12:45:09
阅读次数:
0
二维列表初始化 L=[[0]*n]*m方式初始化 初始化一个 \(m\times n\) 的二维列表,初值全为0 L=[[0]*3]*2 print("初始的:",L) #赋值 for i in range(2): for j in range(3): L[i][j]=i+j print("赋值后: ...
分类:
编程语言 时间:
2021-06-02 12:38:38
阅读次数:
0