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

Example not working #2

Open
hec10r opened this issue Feb 2, 2021 · 1 comment
Open

Example not working #2

hec10r opened this issue Feb 2, 2021 · 1 comment

Comments

@hec10r
Copy link

hec10r commented Feb 2, 2021

The example request given in the docstring of load_nbs_web is not working.

Running

import requests
url = 'http://data.stats.gov.cn/english/easyquery.htm?m=QueryData&dbcode=fsnd&rowcode=reg&colcode=sj&wds=[{"wdcode":"zb","valuecode":"A090201"}]&dfwds=[{"wdcode":"sj","valuecode":"1995-2014"}]&k1=1472740901192'

res = requests.get(url, verify=False)

print(res.status_code)

returns 404

@khaeru
Copy link
Owner

khaeru commented Feb 2, 2021

Thanks for reporting.

If you note the commit history of that file, it was last modified almost 3 years ago, in April 2018. The service URL has probably changed, or it has been replaced with a new one.

I am not currently using that code, so I do not plan (for now) to update it.

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