Twitter Search Widget - Not pulling tweets chronologically - twitter

I have an issue whereby the twitter widget is not pulling tweets in the right order. It might pull a tweet 6 hours ago and then another 2 mins ago and then another 5 hours ago which is quite frustrating.
Does anybody know what would cause this? and how to get the widget to pull tweets in the correct order?
thanks
BIOS

Search can return tweets based on their popularity.
Add this to your query
result_type=recent
See the documentation.

Related

How many past month can i get data from youtube api?

How far can you get data from youtube api? I was testing on getting data from the past and was only able to get 6 months from now. Can anyone confirm this? Thank you very much
Edit: It seems like the issue is only visible when i'm using the https://github.com/alaouy/youtube package. I tried to access it via url and I got a response data.
EDIT 2:
Here is the call:
https://www.googleapis.com/youtube/v3/search?key={KEY}&part=snippet&channelId=UCBJycsmduvYEL83R_U4JriQ&type=video&order=date&publishedBefore=2016-11-30T23%3A59%3A59.999999%2B08%3A00&publishedAfter=2016-09-01T00%3A00%3A00.000000%2B08%3A00&maxResults=50
I used this script in curl on loop with -3 months every loop in 5 seconds interval

Getting YouTube videos with most views in last 24 hours

I have found an example of someone apparently successfully doing this: https://tool.veescore.com/showcase/videos/views?interval=1d, but this only updates once every 5 days. Can anyone suggest how I could request this information manually?
YouTube api request allows you to enter a specifier for published after x time, so you could grab the time 24 hours ago and apply it to.
https://www.googleapis.com/youtube/v3/search?part=snippet&order=viewCount&publishedAfter=2017-10-27T00%3A00%3A00Z&key=YOUR_API_KEY

How to find views per day with Youtube API

I'm able to get view count with Youtube API v3, but does anyone know how get the number of views per day? Any suggestions on how to scrape this data would be great.
Apparently it's possible:
How does one pull statistics (either daily or over time) from the YouTube API
but the person who commented how to do it now has a broken link.
Thanks in advance!
You'll have to pull in the total views every day and calculate the difference yourself.

Unable to get more than 7 days of tweets using search.twitter.com

Is it possible to get more than 6-9 days old data(tweets) using "https://search.twitter.com/search.json?q=" I've tried multiple things mentioned at https://dev.twitter.com/docs/api/1/get/search and https://dev.twitter.com/docs/using-search but still not able to get more than 7 days old tweets.
I can see older tweets using the UI (twitter.com) but not through search.twitter.com query string which is my actual requirement.
Is it a known thing ? or am i missing something here? Please help !!
Nope, this is a limitation of the Twitter Search API. You can find it documented here:
You cannot use the Search API to find Tweets older than about a
week.
If you need Tweets older than a week Gnip offers historical Tweets all the way back to the very first Tweet from #jack.
https://gnip.com/sources/twitter/
Disclosure: I work at Gnip.

Show live tweets for a certain hashtag, but a year ago

I need to make a twitter page to show the tweets that happened a year ago for a certain hashtag.
The page should show the tweets wrote, but a year ago right in this time "hour, min, second".
I looked in the twitter API and i didn't get anything useful.
Please help me.
For search you can use the since and until operators.
https://dev.twitter.com/docs/using-search
but you may have issues retrieving tweets from a year ago, or even 2 weeks ago.
To overcome this I suggest looking into Snapbird API
https://github.com/remy/snapbird

Resources