Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以下载指定课程 #22

Open
yunCrush opened this issue Sep 10, 2023 · 0 comments
Open

可以下载指定课程 #22

yunCrush opened this issue Sep 10, 2023 · 0 comments

Comments

@yunCrush
Copy link

yunCrush commented Sep 10, 2023

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

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

修改点2.将297行左右的

if product.get('title', '')  in self.exclude:
修改为
if product.get('title', '')  not in self.exclude:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant