It seems like there's some disagreement in this code about which URL we should be using for Search V2. I'm creating an issue instead of a pull request because I'm not sure which URL we should be using, but if we decide which is the right URL and what the expected behavior should be when the wrong URL is provided I'll submit the changes as a pull request.
71 # Search v2 uses a different url
72 **if "gnip-api.twitter.com" in self.stream_url**:
73 self.options.search_v2 = True
74 else:
75 raise Exception("Error: Your URL appears to point to a deprecated version 1.0 endpoint. P lease provide a version 2.0 endpoint.\n")
From gnip_time_series.py (I commented this out, and it worked):
It seems like there's some disagreement in this code about which URL we should be using for Search V2. I'm creating an issue instead of a pull request because I'm not sure which URL we should be using, but if we decide which is the right URL and what the expected behavior should be when the wrong URL is provided I'll submit the changes as a pull request.
1 -> url = https://gnip-api.twitter.com/search/fullarchive/accounts//dev.json/dev.json
Both appear to work as well, as long as I comment the error statements out. Right now I'm using #1.
2 -> url = https://data-api.twitter.com/search/fullarchive/accounts/
From gnip_search.py:
From gnip_time_series.py (I commented this out, and it worked):