From d09f124d5cdad49b87792a4f950a32235765339e Mon Sep 17 00:00:00 2001 From: Diego Sevilla Ruiz Date: Thu, 18 Aug 2016 12:55:29 +0200 Subject: [PATCH] Some Twitter v1 endpoints were closed I updated v1 endpoints to version 1.1 so that they work after Twitter deprecated some v1 endpoints. Somebody also noted this in the forum of the course, but nobody seemed to change it in the git, so this is then change and pull request. --- assignment1/twitterstream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assignment1/twitterstream.py b/assignment1/twitterstream.py index 147754ac..9e2bcd20 100644 --- a/assignment1/twitterstream.py +++ b/assignment1/twitterstream.py @@ -51,7 +51,7 @@ def twitterreq(url, method, parameters): return response def fetchsamples(): - url = "https://stream.twitter.com/1/statuses/sample.json" + url = "https://stream.twitter.com/1.1/statuses/sample.json" parameters = [] response = twitterreq(url, "GET", parameters) for line in response: