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

【教程】如何查询不同城市的百度指数 #72

Open
longxiaofei opened this issue Jun 30, 2022 · 2 comments
Open

【教程】如何查询不同城市的百度指数 #72

longxiaofei opened this issue Jun 30, 2022 · 2 comments

Comments

@longxiaofei
Copy link
Owner

# 查询城市对应编码
from qdata.baidu_index.config import PROVINCE_CODE, CITY_CODE

print(PROVINCE_CODE)
print(CITY_CODE)

# 查询北京的指数
for index in get_search_index(
    keywords_list=keywords_list,
    start_date='2018-01-01',
    end_date='2019-05-01',
    cookies=cookies,
    area=911
):
    print(index)
@xyy-711
Copy link

xyy-711 commented Jun 30, 2022

感谢感谢!

@hulala220
Copy link

您好,怎么在以前的format中也加上区域(省区)一列呢?

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

3 participants