ptwobrussell / Mining-the-Social-Web-2nd-Edition

The official online compendium for Mining the Social Web, 2nd Edition (O'Reilly, 2013)
http://bit.ly/135dHfs
Other
2.9k stars 1.49k forks source link

Unquote Twitter API responses to address URL encoding error #249

Closed mbfhunzaker closed 9 years ago

mbfhunzaker commented 9 years ago

This pull request adds unquote around the next_results property within the Twitter API search example. Without this change, the request fails to return further results after the first iteration through the loop.

Before this change:

before

After this change:

after

This should address the following issues:

ptwobrussell commented 9 years ago

LGTM. Many thanks to @mbfhunzaker for tracking this down and fixing it!

pseudostormy commented 7 years ago

Just a note that to get this to function on my machine I had to change it to:

from urllib.parse import unquote