Skip to content

api.search() results don't match query #1442

Discussion options

You must be logged in to vote

There are multiple possible reasons for that statement to be printing False.

The most common is likely due to the standard search API not being case-sensitive. Therefore, any Tweet result with "Tweepy" in it (or with any other variation in case) will print False with that statement.

Another possible reason is that without using extended mode, only the first 140 characters of the Tweet's text will be returned, and the rest will be truncated. The standard search API will still return results matching the query in the parts of the Tweet's text that are truncated. This means your statement will print False in the cases that the query is only in the Tweet's text past 140 characters.
This will …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Harmon758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question This is a question API This is regarding Twitter's API Discussion This was converted/moved from/to a discussion
3 participants
Converted from issue

This discussion was converted from issue #1442 on December 16, 2020 11:12.