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

KeyError hits #22

Open
benoistlaurent opened this issue Aug 16, 2023 · 0 comments
Open

KeyError hits #22

benoistlaurent opened this issue Aug 16, 2023 · 0 comments

Comments

@benoistlaurent
Copy link

Command:

python scripts/scrap_zenodo.py --query params/query.yml --output data

Result:

2023-08-16 16:20:49 INFO /Users/laurent/Downloads/mdws/scripts/scrap_zenodo.py
[...]
2023-08-16 16:21:02 INFO resource_type.type:"dataset" AND filetype:"mdp"  AND ("molecular dynamics" OR "molecular dynamic" OR "molecular-dynamics" OR "molecular-dynamic" OR "md trajectory" OR "md trajectories" OR "md simulation" OR "md simulations" OR "gromacs" OR "gromos" OR "namd" OR "amber" OR "desmond" OR "amber96" OR "amber99" OR "amber14" OR "charmm" OR "charmm27" OR "charmm36" OR "martini")
2023-08-16 16:21:02 DEBUG Starting new HTTPS connection (1): zenodo.org:443
2023-08-16 16:21:02 DEBUG https://zenodo.org:443 "GET /api/records?q=resource_type.type%3A%22dataset%22+AND+filetype%3A%22mdp%22++AND+%28%22molecular+dynamics%22+OR+%22molecular+dynamic%22+OR+%22molecular-dynamics%22+OR+%22molecular-dynamic%22+OR+%22md+trajectory%22+OR+%22md+trajectories%22+OR+%22md+simulation%22+OR+%22md+simulations%22+OR+%22gromacs%22+OR+%22gromos%22+OR+%22namd%22+OR+%22amber%22+OR+%22desmond%22+OR+%22amber96%22+OR+%22amber99%22+OR+%22amber14%22+OR+%22charmm%22+OR+%22charmm27%22+OR+%22charmm36%22+OR+%22martini%22%29&size=1&page=1&status=published&access_token=hk5IwtmwSMMc55NwySokszz7bzNhleyxjWQlU5uOAQW6qZbVgvTlkHJiJ5w9 HTTP/1.1" 308 1459
2023-08-16 16:21:03 DEBUG https://zenodo.org:443 "GET /api/records/?q=resource_type.type%3A%22dataset%22+AND+filetype%3A%22mdp%22++AND+%28%22molecular+dynamics%22+OR+%22molecular+dynamic%22+OR+%22molecular-dynamics%22+OR+%22molecular-dynamic%22+OR+%22md+trajectory%22+OR+%22md+trajectories%22+OR+%22md+simulation%22+OR+%22md+simulations%22+OR+%22gromacs%22+OR+%22gromos%22+OR+%22namd%22+OR+%22amber%22+OR+%22desmond%22+OR+%22amber96%22+OR+%22amber99%22+OR+%22amber14%22+OR+%22charmm%22+OR+%22charmm27%22+OR+%22charmm36%22+OR+%22martini%22%29&size=1&page=1&status=published&access_token=hk5IwtmwSMMc55NwySokszz7bzNhleyxjWQlU5uOAQW6qZbVgvTlkHJiJ5w9 HTTP/1.1" 500 95
Traceback (most recent call last):
  File "/Users/laurent/Downloads/mdws/scripts/scrap_zenodo.py", line 422, in <module>
    total_hits = resp_json["hits"]["total"]
                 ~~~~~~~~~^^^^^^^^
KeyError: 'hits'
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

1 participant