From faaa3c3073326ab0a89a7d4770a7a2c67377292e Mon Sep 17 00:00:00 2001 From: Min-Jun Kim Date: Sun, 15 Oct 2017 21:04:57 +0200 Subject: [PATCH] previous url needs to be changed line 54: "stream.twitter.com/1/statuses/sample.json" should be changed to "stream.twitter.com/1.1/statuses/sample.json" - previous url doesn't work anymore - this change needs to be reflected to the virtual machine file as well --- 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: