diff --git a/setup.py b/setup.py index bc2b270..a7557fd 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup -__version__ = "0.0.9" +__version__ = "0.0.10" def long_description(): with open("README.md") as f: diff --git a/twitter_archive_unshorten.py b/twitter_archive_unshorten.py index 1693739..d2157de 100755 --- a/twitter_archive_unshorten.py +++ b/twitter_archive_unshorten.py @@ -177,7 +177,7 @@ def read_url_map(path): """Read short/long mapping in existing data. """ text = open(path, encoding="utf8").read() - text = re.sub(r'^window.YTD.tweet.part0 = ', '', text) + text = re.sub(r'^window.YTD.tweets?.part0 = ', '', text) data = json.loads(text) url_map = {} for tweet in data: