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

bug: 百度指数获取数据不对 #20692

Open
gsy44355 opened this issue Dec 2, 2022 · 1 comment
Open

bug: 百度指数获取数据不对 #20692

gsy44355 opened this issue Dec 2, 2022 · 1 comment

Comments

@gsy44355
Copy link

gsy44355 commented Dec 2, 2022

使用官方demo,获取百度指数,获取时间为2015年到2022年12月1日数据,获取到的数据index值有2400个为0,且峰值出现在2016年,数据不对。

import gopup as gp
cookie = '此处输入您在网页端登录百度指数后的 cookie 数据'
index_df = gp.baidu_search_index(word="口罩", start_date='2015-01-01', end_date='2022-12-01', cookie=cookie)
print(index_df)
@tibacio
Copy link

tibacio commented Dec 26, 2022

数据抓取本身也有时间段限制,最多建议不超过120天。亲身经历

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