Skip to content

Commit

Permalink
release 0.0.3 Polish twitter deaths implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbenes1996 committed Jun 11, 2020
1 parent 515b4de commit 78a8bfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions covid19poland/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,13 @@ def fetch1(dt = None):
def fetch2(dt = None):
return fetch_table(parse_states, dt)

def twitter(start = None, end = None, keys = ['deaths']):
return PolishTwitter.get(end = end, start = start, keys = keys)
def twitter_deaths(start = None, end = None):
data,ignored,checkdates = PolishTwitter.get(end = end, start = start, keys = ['deaths'])
if checkdates:
print(checkdates)
return data,ignored,checkdates
else:
return data,ignored,checkdates

def fetch(level = 1, dt = None):
if level == 1:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setuptools.setup(
name = 'covid19poland',
version = '0.0.2',
version = '0.0.3',
author = 'Martin Beneš',
author_email = '[email protected]',
description = 'Web Scraper for Poland COVID19 data.',
Expand All @@ -21,7 +21,7 @@
packages=setuptools.find_packages(),
license='MPL',
url = 'https://github.com/martinbenes1996/covid19poland',
download_url = 'https://github.com/martinbenes1996/covid19poland/archive/0.0.2.tar.gz',
download_url = 'https://github.com/martinbenes1996/covid19poland/archive/0.0.3.tar.gz',
keywords = ['2019-nCov', 'poland', 'coronavirus', 'covid-19', 'covid-data', 'covid19-data'],
install_requires=reqs,
package_dir={'': '.'},
Expand Down

0 comments on commit 78a8bfe

Please sign in to comment.