[Resolved] Show only hash tag specific tweets
If you select search in the widget and search for:
that should work for you.
Please let me know if there is a problem.
Thanks for getting back to me. I did exactly what you said and now the widget says it rotates between “Can’t retrieve twitter data” and “No search results for from:account #excellenceinlaundry.”
Thanks for your help!
Apologies. You need to substitute the account name.
Try something like:
When I use similar criteria for searching with Rotating Tweets, I am only able to retrieve the first tweet that matches the criteria. However, when I search on twitter.com using the same criteria, I see the full list of search results.
Has anyone else experienced this? Is there a resolution?
That’s odd. Is that true for all searches that you do?
What happens if you try it with a trending hashtag?
Is there only one tweet showing up in the HTML? Or is the problem that there is more than one tweet but they are not rotating?
If I use just one search criteria (e.g. just from: or just the hashtag), I get all of the tweets that match the criteria. It’s only when I combine the two that I experience this issue.
When inspecting the DOM element, I only see the one tweet written into the HTML code.
Another option might be to comment back in line 993 (in the development version):
Using “from:CoinLaundryAssn #excellenceinlaundry” returns 2 tweets.
Using “from:PHE_uk #sharelistenact” returns the 5 most recent.
Won’t the inclusion of the code on line 993 also limit the results?
That suggests we have an API problem – since RT can receive more than 1 tweet and also display them.
One idea might be to increase
'count'=>40to 80 in this line (around 990):
$apioptions = array('screen_name'=>$tw_screen_name,'include_entities'=>1,'count'=>40,'include_rts'=>$tw_include_rts,'exclude_replies'=>$tw_exclude_replies);
just to see what happens…
I tried all of these suggestions, but I saw the same results as before. I did some poking around and it appears that the tweets available to the API only go back so far. So, no matter how the parameters are set, if tweets that should match the search criteria are older than the timeframe that Twitter deems suitable, then they will never show up via the API.
Thanks for your help.
I feared that might be the case. Sorry about that.
This suggests there’s not going to be an easy solution.
The only solution I can think of would be incremental storage of particular search results – but that would be tricky – and would take time to solve the problem. Currently RT overwrites the previous download every time it gets new tweets. This would mean that if a search was small (i.e. 1-3 tweets), it would add it to the previous search rather than just replacing it.
- The topic ‘[Resolved] Show only hash tag specific tweets’ is closed to new replies.