From 76f8bbe16b3e807798d5d6842c5fc9bd76111340 Mon Sep 17 00:00:00 2001 From: Robert Mock Date: Sat, 20 Jan 2018 21:47:39 -0800 Subject: [PATCH 1/2] fixes naming issue after Mastodon.py api change --- fediplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fediplay.py b/fediplay.py index d6d407c..39be3ad 100644 --- a/fediplay.py +++ b/fediplay.py @@ -72,7 +72,7 @@ def login(api_base_url, email, password): def stream(api_base_url): client = Mastodon(client_id='clientcred.secret', access_token='usercred.secret', api_base_url=api_base_url) listener = StreamListener() - client.user_stream(listener) + client.stream_user(listener) def extract_tags(toot): return [tag['name'] for tag in toot['tags']] From 9408eb5a4e0464a0fb2cfef2909b7295cc9b409f Mon Sep 17 00:00:00 2001 From: Matt Behrens Date: Sun, 21 Jan 2018 12:28:14 -0500 Subject: [PATCH 2/2] update dependencies for new streaming API --- Pipfile | 4 ++-- Pipfile.lock | 15 +++++++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/Pipfile b/Pipfile index bd8e754..8e97509 100644 --- a/Pipfile +++ b/Pipfile @@ -9,8 +9,8 @@ name = "pypi" cssselect = "==1.0.1" lxml = "==4.1.1" -"Mastodon.py" = "==1.1.2" -youtube_dl = "==2017.11.26" +"mastodon.py" = "*" +youtube-dl = "==2017.11.26" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 69d9c99..8343eff 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "9640097ff751e9453f527272cd00226c924c2a6a0e6f6162021c01b79a32521a" + "sha256": "a6105afa396f29f182d549d6d27598fa125214079f1483bd8883c79647717d9d" }, "host-environment-markers": { "implementation_name": "cpython", @@ -48,6 +48,13 @@ ], "version": "==1.0.1" }, + "decorator": { + "hashes": [ + "sha256:94d1d8905f5010d74bbbd86c30471255661a14187c45f8d7f3e5aa8540fdb2e5", + "sha256:7d46dd9f3ea1cf5f06ee0e4e1277ae618cf48dfb10ada7c8427cd46c42702a0e" + ], + "version": "==4.2.1" + }, "idna": { "hashes": [ "sha256:8c7309c718f94b3a625cb648ace320157ad16ff131ae0af362c9f21b80ef6ec4", @@ -90,10 +97,10 @@ }, "mastodon.py": { "hashes": [ - "sha256:b356726253291aad33bd64547f4d26721b643d938300b198446060e7d0454fe0", - "sha256:54f08160ec3f4da5fd0c23ad185e8079a3c19f6986c2c7a7dcafadbfc2e009e2" + "sha256:197b7a04b5daa47329355b427916099bf8ff38a6b1ec32670a9f085778a77ca0", + "sha256:b3ef52609a0159683d2898ec5afda2a0c36beae854c29e5af02b2866acb2e4db" ], - "version": "==1.1.2" + "version": "==1.2.1" }, "python-dateutil": { "hashes": [