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

feapder版本>1.7时,feapder.Request设置参数render=True,请求网页会报错 #204

Open
qazasdsdqaza opened this issue Mar 16, 2023 · 0 comments

Comments

@qazasdsdqaza
Copy link

需知
当前最新版本为1.8.5,更新至此版本后出错

问题
抛出 'str' object has no attribute 'decode
截图

代码
import feapder

class Spider(feapder.AirSpider):
custom_setting = dict(
LOG_LEVEL='DEBUG'
)

def start_requests(self):
    yield feapder.Request('https://www.gaokao.cn/school/2055', render=True)

def parse(self, request, response):
    print(response.text)

if name == 'main':
Spider(thread_count=1).start()

Python版本 3.9.13
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