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

请问添加任务之后,怎么获取抓取到的内容? #32

Closed
yundGo opened this issue Aug 13, 2018 · 2 comments
Closed

请问添加任务之后,怎么获取抓取到的内容? #32

yundGo opened this issue Aug 13, 2018 · 2 comments

Comments

@yundGo
Copy link

yundGo commented Aug 13, 2018

我用add方法,添加了一个任务,任务开始之后,会把抓取到的内容打印出来,但是执行成功后回调函数返回的数据里面没有抓取到的内容字段。请问我要怎么获得抓取的内容,不需要打印出来?

@ares333
Copy link
Owner

ares333 commented Aug 13, 2018

demo/basic.php
回调函数外的$responseCode是在回调函数中赋值,需要了解异步io、php回调、php引用。

@yundGo
Copy link
Author

yundGo commented Aug 14, 2018

@ares333 明白了,非常感谢

@ares333 ares333 closed this as completed Feb 22, 2020
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