Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyError: 'next_results' on updated introduction__retweet_visualization.py #59

Open
ez3kiel opened this issue Jun 5, 2013 · 6 comments
Assignees

Comments

@ez3kiel
Copy link

ez3kiel commented Jun 5, 2013

Hello Matt, im having a problem with your new script introduction__retweet_visualization.py
Trying to run the script but i get an error:
next_results = search_results['search_metadata']['next_results']
KeyError: 'next_results'
Any idea? Thnx anyway

@ptwobrussell
Copy link
Owner

I think what could be happening is that what you are searching for is not returning any results, and that's causing an error. I should be handling that error case more elegantly, and will leave this ticket open as my note-to-self to do so.

Is it possible that this is what is happening? Can you share your query with me so I could try to reproduce and track down this problem?

@ez3kiel
Copy link
Author

ez3kiel commented Jun 5, 2013

Yes, you're right!! my query is 'direngeziparkı' . i wonder why this was working with your previous script and no with the last one?


Απο: Matthew A. Russell notifications@github.com
Προς: ptwobrussell/Mining-the-Social-Web Mining-the-Social-Web@noreply.github.com
Κοιν.: ez3kiel giagoulas1711@yahoo.gr
Στάλθηκε: 2:12 π.μ. Πέμπτη, 6 Ιουνίου 2013
Θέμα: Re: [Mining-the-Social-Web] keyError: 'next_results' on updated introduction__retweet_visualization.py (#59)

I think what could be happening is that what you are searching for is not returning any results, and that's causing an error. I should be handling that error case more elegantly, and will leave this ticket open as my note-to-self to do so.
Is it possible that this is what is happening? Can you share your query with me so I could try to reproduce and track down this problem?

Reply to this email directly or view it on GitHub.

@ptwobrussell
Copy link
Owner

Whether or not there are results for a query is dependent entirely upon Twitter. It may be the case that they are flushing a cache or only keeping a history of the most recent tweets for a particular time window. My understanding is that query results could be transient like that.

@wandeg
Copy link

wandeg commented Jul 5, 2013

I'm having the same problem with the script in Chapter 1

@ptwobrussell
Copy link
Owner

Thanks for letting me know. I will get this patched and updated in GitHub later this morning.

On Jul 5, 2013, at 2:43 AM, wandeg notifications@github.com wrote:

I'm having the same problem with the script in Chapter 1


Reply to this email directly or view it on GitHub.

@ptwobrussell
Copy link
Owner

I believe this issue is fixed in commit 16a0659 - can you test it out and close this issue if you agree? I believe this is the same issue as reported in #61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants