From 0be985c565bda2a1d598c7864a6fc8e5f80f179b Mon Sep 17 00:00:00 2001 From: XinyuanGui Date: Thu, 5 Oct 2017 16:02:25 -0400 Subject: [PATCH] Update twitterstream.py The original url doesn't work now. --- 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: