Just curious to know that whether there is a way in twitter to check for the popular trends in categories e.g. 'automobile', 'sports', 'forex' etc, just like we have the search.twitter.com providing us with the search for keywords. is there a way we can search for particular trends associated with some category.
Thanks,
Vaibhav
Well as far as I have seen, there is no api to extract trends based on topics BUT you can monitor tweets containing particular key words through the public streaming API. Check the twitter api documentation for more.. https://dev.twitter.com/docs/streaming-apis
Related
I am planning to use the Spotify API to fetch some data, feeding track name and artist as search keywords. However, the track name and artist data I have some parsing errors, and I was wondering if there are any methods in Spotify API that auto-corrects the keywords.
For example, Google will fetch me documents about Radiohead even if I search for 'Radiohea','Radihead', and so. Also, the Last.fm API provides a method named 'track.getCorrection', which does jobs similar to those I explained above.
Here is the explanation of the method from the official Last.fm API website:
'Use the last.fm corrections data to check whether the supplied track has a correction to a canonical track.'
Does anyone know if such method exists in Spotify API?
No, there's no auto-correction engine. The closest Spotify gets to having a search engine is the search endpoint:
You can search, for instance, like this:
query = 'radio head'
and then
query_results = sp.search(q=query, type='playlist')
would return
...u'playlist'...{u'name': u'Air/Zero 7/Thievery Corp/Radio Head/Massive Attack/Morcheeba',...
but that requires that the playlist user spelled it wrong too. That is as far as a typo can get you, I'm afraid.
A workaround is fetching the artist using the last.fm API, use its auto-correction tool and then feed this result into Spotify API, either using artist, track or search endpoints.
I highly recommend you using more than one API for your app, as each one has its own limitations.
I understand the Twitter API is only getting more restricted, but is it possible to use the search API to find the most tweeted links within a given time period?
That is currently not possible with the Twitter API. It is possible with Gnip (disclosure I work for Gnip), but to figure that out would be very costly. In essence what you would need to do is get every Tweet with a link in it and then from that dataset determine the most Tweeted links.
On the Spotify dashboard an user has a great experience through the recommended artist and songs. I would like to use this intelligence in an app we plan to develop for a big Dutch based podium. So the app can give a list of concerts playing at the poppodium which the user might be interested in.
Can I get this recommended artist data, based on the user's history, through the Spotify API?
The Spotify API now provides recommendations:
https://developer.spotify.com/web-api/get-recommendations/
Recommendations are generated based on the available information for a
given seed entity and matched against similar artists and tracks. If
there is sufficient information about the provided seeds, a list of
tracks will be returned together with pool size details.
For artists and tracks that are very new or obscure there might not be
enough data to generate a list of tracks.
There are a bunch of parameters that can be configured for fine-tuning the recommendation: key, genre, loudness, energy, instrumentalness, popularity, speechiness, danceability, key ...
You can use Spotify's Web API endpoints to fetch these data:
The Get a User’s Top Artists and Tracks endpoint will give you artists and tracks based on user's listening history. You can also use the Get Current User’s Recently Played Tracks, which will give you up to 50 recently played tracks.
Use the artists and tracks you just get and use them as seeds for the Get Recommendations Based on Seeds endpoint. This endpoint will only return tracks. If you want to get artists based on other artists there is the Get an Artist’s Related Artists endpoint that you can use.
As you see, combining multiple endpoints will get you covered. Just make sure you read the Web API Authorization Guide before. You are going to need the user to authenticate in order to get user's data.
Note: When the question was first posted (July 2013), Spotify's Web API didn't exist. The question referred to a now defunct Spotify Apps API which didn't provide a way to generate recommendations based on listening history.
In the facebook and twitter APIs, there's a way to get posts from all the people I follow, is there a way to do this with Google+? If there isn't, where can I suggest it?
The Google+ API currently does not provide a way to list people from your circles.
You can retrieve people in other ways. Try retrieving people by userId, through a search, or by activity using the people methods. With each userId you can retrieve posts using Activities: list.
Feature requests and issues can be reported and starred here: https://code.google.com/p/google-plus-platform/
For my research, I want to use some data that can capture twitter users following each other . I want to represent this relationship in a big directed-graph. If you think about this graph it's probably very huge, I want to generate it and perhaps store it in adjacency-matrix format.
However when I tried to make use of Twitter's API, there are some useful methods like GET followers, GET friends I can use. But it has 150query/hour limit. At that rate, I would never finish crawling Twitter and generate a good enough direct-graph.
Is there a better way of doing this?
I remember that one of my friends contact this research group and they provide her a dataset.
http://twitter.mpi-sws.org/
Maybe you should try to find a dataset instead. Try this SO question, the answers provide a few datasets of them.
Twitter Data Archive
Tribalytics-raw provides twitter followers and/or friends raw graph data as a service.
To comply with Twitter API's terms of service, only twitter users Ids are provided. You can extract the users metadata by yourself using twitter's users/lookup API endpoint, which is not so heavily rate-limited.
Full disclosure: I am the founder of this tool, and I have read this before posting