/sast-2024-crawler

清华大学计算机系科协暑期培训-爬虫入门

Primary LanguageJupyter Notebook

代码食用指南

你需要安装 pythonnodejs 相关环境

python

首先下载 python,然后在本目录运行

pip install -r requirements.txt

为了使用 selenium 库,你需要先安装 Chrome Driver

nodejs

请参考 官方文档 安装 nodejs。随后进入代码目录 (cd code),并为 npm 换源

npm config set registry https://registry.npm.taobao.org

随后安装 node 所需依赖

npm install axios cheerio fs path puppeteer path