suqingdong / nsfc

国家自然科学基金查询

Home Page:https://suqingdong.github.io/nsfc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

爬取出错

RubyHoho opened this issue · comments

请问大家命令行这样出错是什么原因,怎么改呢?

-bash-3.2$ nsfc search -c H -y 2019 -o out [2020-12-19 11:09:59 NSFC search DEBUG MainThread:72] input arguments: {'codes': 'H', 'years': '2019', 'outfile': 'out', 'projects': None, 'outtype': 'xlsx', 'type': 'Z'} [2020-12-19 11:09:59 NSFC search DEBUG MainThread:84] >>> crawling: H0101 - 2019 - 630 right captcha: 655n {'code': 'H0101', 'projectType': '630', 'conclusionYear': '', 'ratifyYear': '2019', 'ratifyNo': '', 'projectName': '', 'personInCharge': '', 'dependUnit': '', 'keywords': '', 'subPType': '', 'psPType': '', 'pageNum': 0, 'pageSize': 10, 'beginYear': '', 'endYear': '', 'adminID': '', 'checkDep': '', 'checkType': '', 'quickQueryInput': '', 'queryType': 'input', 'complete': '', 'tryCode': '655n'} error code: {"code": 500, "data": null, "message": "请正确输入检索条件"}

网站更新的原因,目前只能进行结题项目检索,可更新nsfc至最新版本

pip install -U nsfc==1.0.5

网站更新了,必须输入责任人,负责单位,年份,目前还没发现怎么解决
另外作者提到的验证码问题,其实可以不用验证码识别也可以绕过去的,应该是他们一个bug。