We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Stack Overflow不登录情况下搜索帖子有上限,然后我通过下面代码去登录,但是搜索条目依然有限制,请问该怎么办 lg = login.Login() infos_return, session = lg.stackoverflow('xxxxxxxxxxxxx','xxxxxxxxxxxx','pc')#打码 response = session.post(url,data=formdata,headers=headers) page = response.content root = html.fromstring(page) totalnum = root.xpath('//*[@id="mainbar"]/div[4]/div[1]/text()') print(totalnum)
The text was updated successfully, but these errors were encountered:
我这边测试登录返回的信息没有错误,你可以把完整的代码贴上来看看。或者可以尝试一下把cookies拿出来新开一个session进行请求。
Sorry, something went wrong.
No branches or pull requests
Stack Overflow不登录情况下搜索帖子有上限,然后我通过下面代码去登录,但是搜索条目依然有限制,请问该怎么办
lg = login.Login()
infos_return, session = lg.stackoverflow('xxxxxxxxxxxxx','xxxxxxxxxxxx','pc')#打码
response = session.post(url,data=formdata,headers=headers)
page = response.content
root = html.fromstring(page)
totalnum = root.xpath('//*[@id="mainbar"]/div[4]/div[1]/text()')
print(totalnum)
The text was updated successfully, but these errors were encountered: