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

响应-Response - feapder-document #19

Open
Boris-code opened this issue Mar 15, 2021 · 4 comments
Open

响应-Response - feapder-document #19

Boris-code opened this issue Mar 15, 2021 · 4 comments

Comments

@Boris-code
Copy link
Owner

https://boris.org.cn/feapder/#/source_code/Response

feapder是一款支持分布式、批次采集、任务防丢、报警丰富的python爬虫框架

@doyus
Copy link

doyus commented Mar 26, 2021

In [3]: response.open()
'open' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
我的命令行不能执行这个函数。。我应该改哪

@Boris-code
Copy link
Owner Author

@doyus
In [3]: response.open()
'open' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
我的命令行不能执行这个函数。。我应该改哪

你的response是requests的response还是我这个封装后的

@beifengle
Copy link

beifengle commented Apr 20, 2022

怎么把字符串的html文本转换成Response,如把

< div id="test">
Test text
< /div>

转换成Response方便使用xpath

@Boris-code
Copy link
Owner Author

@beifengle
怎么把字符串的html文本转换成Response,如把

< div id="test">
Test text
< /div>

转换成Response方便使用xpath

from feapder.network.selector import Selector

selector = Selector(text)
selector.xpath()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants