Code Monkey home page Code Monkey logo

covid19_python's People

Contributors

binarynightowl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

covid19_python's Issues

[BUG] Can't get covid cases for USA

Describe the bug
Running covid19_data.dataByName("USA").confirmed (replace USA with United States of America, United States, etc.. and it just returns keyError)
To Reproduce
Steps to reproduce the behavior:

  1. Run import covid19_data; covid19_data.dataByName("USA").confirmed;
  2. See error

Expected behavior
Give confirmed cases.

Screenshots
If applicable, add screenshots to help explain your problem.
https://pasteboard.co/JOw7y82.png
Desktop (please complete the following information):
Ubuntu 18.04 Bionic
Additional context
Add any other context about the problem here.

KeyError: 'US' [BUG]

When importing covid19_data, a key error occurs:
KeyError: 'US'

The full error looks like this:

File "covid_test.py", line 1, in
import covid19_data
File "/usr/local/lib/python3.7/site-packages/covid19_data/init.py", line 1, in
from covid19_data.JHU import dataByCallerName, dataByCallerNameShort, dataByName, dataByNameShort, jsonByCallerName,
File "/usr/local/lib/python3.7/site-packages/covid19_data/JHU/init.py", line 616, in
US_obj = dataByName("US")
File "/usr/local/lib/python3.7/site-packages/covid19_data/JHU/init.py", line 577, in dataByName
item.rtrn_data()
File "/usr/local/lib/python3.7/site-packages/covid19_data/JHU/get_object.py", line 34, in rtrn_data
self.rtrn_item_json()
File "/usr/local/lib/python3.7/site-packages/covid19_data/JHU/get_object.py", line 31, in rtrn_item_json
self.json = self.fullJSON[self.caller]
KeyError: 'US'

I am running:

  • OSX, 10.14.6
  • Python 3.7
  • covid19 _data version 1.2.0

Any hints would be greatly appreciated!

[BUG] not working

Describe the bug
A clear and concise description of what the bug is.
While I'm doing this

2


1

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. Windows 10 Build 2004, Ubuntu 20.04, etc.]
  • Python3 Version [e.g. PyPi3, Python 3.8, etc. ]
  • Version [e.g. 1.0.1]

Additional context
Add any other context about the problem here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.