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

如何让多个spider顺序执行 #1118

Open
getideas opened this issue May 4, 2023 · 1 comment
Open

如何让多个spider顺序执行 #1118

getideas opened this issue May 4, 2023 · 1 comment

Comments

@getideas
Copy link

getideas commented May 4, 2023

如何让多个spider顺序执行,比如spider1执行完毕后,就开始执行spider2,要如何操作。

@18547601391
Copy link

将多个爬虫需要的参数封装放在list中,用foreach遍历,在循环内调用spider的启动方法,这样一次爬虫结束以后就会进入下一个循环执行第二个爬虫

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

2 participants