张延森 0236ee3e33 feats 4 yıl önce
src feats 4 yıl önce
.gitignore first commit 4 yıl önce
README.md feats 4 yıl önce
mvnw first commit 4 yıl önce
mvnw.cmd first commit 4 yıl önce
pom.xml feats 4 yıl önce

README.md

十公里民宿

网页抓取说明

网页抓屏解决方案

安装 chrome

# yum install google-chrome-stable 方式二选一
curl https://intoli.com/install-google-chrome.sh | sh

# 查看 chrome 版本
# 默认安装位置 /opt/google/chrome
google-chrome-stable --version

下载 chrome 驱动

https://npm.taobao.org/mirrors/chromedriver/

驱动最好跟安装的 chrome 版本对应。服务器上是 87.0.4280.88 的 linux 版本

下载完成之后,上传到 服务器某个目录,并设置执行权限

chmod +x chromedriver

解决网页抓取中文乱码问题

yum -y groupinstall "X Window System"
yum -y groupinstall chinese-support
yum -y groupinstall Fonts
cd /usr/share/fonts
fc-cache -fv