geek_crawler icon indicating copy to clipboard operation
geek_crawler copied to clipboard

可以下载指定课程

Open yunCrush opened this issue 1 year ago • 0 comments

在原来的代码基础上简单的修改了一下,实现下载指定的课程 修改点1.使用原来的exclude变量,存储想要下载的课程,大概在539行左右

 # 将exclude设置为指定要爬取的文章
    exclude = ['快速上手C++数据结构与算法']

修改点2.将297行左右的

if product.get('title', '')  in self.exclude:
修改为
if product.get('title', '')  not in self.exclude:

yunCrush avatar Sep 10 '23 09:09 yunCrush