Generate votes for a URL - twitter

I have an idea that I wnat some feedback on/sugestions. I have a list of 3000 rules and sugestions that are on a public website and at the moment they are in either an aspx or Sharepoint page. I want to move this data to a blogging platform, but I want to list them not in time order, but in a ranked order.
I would like to use this algorythm:
Rank = ([Facebook Likes] + [Tweets] + [Digs] + [Pingbacks] + [Trackbacks]) * [Google Rank]
Facebook Likes - I should be able to call the API
Tweets - I was going to use backtype, but it costs money. Any ideas?
Digs - I can get this through the DIG API
Pingbacks - Not realy sure how to do this one
Google Rank - I should be able to call a Google API
The only things I am worried about are the Tweets and Pingbacks, and maybe they get dropped, but I was hoping that someone would have an idea how to go about that.

I'm not sure about Pingbacks but I know people typically publish shortened versions of URLs on Twitter. Some of the URL shortening sites, such as bit.ly, will give you statistics for those URLs. There is an API available for bit.ly but I'm not sure about the other services.
I'm not sure this helps you out now but might be something to keep in mind for the future.
Hope this helps.

Related

Beginner Question: How to access the number of impressions from *other users'* tweets?

I've got a bunch of free online HTML, CSS, and JS tutorials under my belt and I want to try using them to make a browser extension. But I want to make sure that the data I want to use is actually accessible before getting started.
My goal is to make a browser extension for twitter.com that shows the number of impressions of any tweet next to the likes, retweets, and replies. My basic idea is to get the status URL of any given tweet, poll the Twitter API for the number of impressions of that tweet, store that in a variable, and then use CSS to display a little eye icon and the number stored in the impressions variable.
I know that I can find the number of impressions of all of my tweets, both through Twitter Analytics, and also just going to my profile page and clicking the little bar chart icon next to views, retweets, etc. But I'm not clear on whether I can do that for other people's tweets via Twitter's API or anything else. Can you?
For the record, I'm not too concerned about the varying definition of "impression," since it will be consistently applied across all tweets and I'm mostly interested in giving users a comparison between tweets. This is part of a research project to see how this might change how people engage with social media if they know how many views a given post has. If there's a simpler way to go about that using existing platforms, I'm open to suggestions.
Thanks for the advice!
No, impressions data is private. If you are authenticated to the Twitter API then you can use the new Twitter Developer Labs Tweets API to get private metrics like impressions, but you cannot get that for other people's Tweets. Also, the Twitter API does not support CORS, so I don't think you'll be successful trying to use it from a browser extension.

Youtube API 3.0 - Obtainaining Youtube Share Counter & All Youtube comments for channel

My Total Life Time shares on youtube is 862 How do I retrieve this data? https://www.googleapis.com/youtube/v3/ < I believe I start it like this, right?
How do I retrieve ALL COMMENTS for my channel. (Not for a single video) https://imgur.com/a/5b4MC97 On my Dashboard, it lists all my recent comments. How do I retrieve this data? https://www.googleapis.com/youtube/v3/ < I believe I start it like this, right? (Not worried about the filtered comments if it's trickier)
I plan on using OBS to display my total share count & my latest comment(s) If PHP is involved, would I need a website? Or can I run PHP from my computer?
I believe I understand how to get an API key, but feel free to explain this part to.
I'm hoping coding is not needed, just to get the data. RIght now, only looking to retrieve the data, and if I can do PHP locally for OBS studio!
If there's something you're confused about, ask me questions. I need a direction please!
My Total Life Time shares on youtube is 862 How do I retrieve this data? https://www.googleapis.com/youtube/v3/ < I believe I start it like this, right?
Yup great place to start.
How do I retrieve ALL COMMENTS for my channel. (Not for a single video) https://imgur.com/a/5b4MC97 On my Dashboard, it lists all my recent comments. How do I retrieve this data? https://www.googleapis.com/youtube/v3/ < I believe I start it like this, right? (Not worried about the filtered comments if it's trickier)
Again good place to start.
I plan on using OBS to display my total share count & my latest comment(s) If PHP is involved, would I need a website? Or can I run PHP from my computer?
Yes you can run php locally on your machine without a website. You can access the API in any language capable of preforming a HTTP Post and HTTP get.
I believe I understand how to get an API key, but feel free to explain this part to.
Api key will only help you get public data if you want your own private data you are going to need to look into Oauth2
I'm hoping coding is not needed, just to get the data. RIght now, only looking to retrieve the data, and if I can do PHP locally for OBS studio!
PHP is a scripting language. Coding is going to be required here to access the api and again to process the raw data that is returned.
If there's something you're confused about, ask me questions. I need a direction please!

where can I find a machine-readable list of the most popular users on twitter?

I'm interested in building a simple demo and need a list of top twitter users. Is there a web site that offers a JSON or RSS feed (or otherwise easily parseable list) of the top 1000 twitter users by number of followers. Is there a web site that offers something like this? (I know I can scrape one of the many sites like Twitaholic but I'd rather not bother with that if there is an easier alternative.)
Twitter Counter , they also have a nice REST api that I like. Lady Gaga is #1 of course.
Edit based on comment
Here is a Yahoo Pipe for Top5 which can probably be edited for more
http://pipes.yahoo.com/pipes/pipe.info?_id=10ba4ad51d85cbf06d97236a2a291ac6
http://twittercounter.com/
http://twittercounter.com/pages/api?ref=footer

How would I find all the short urls that link to a particular long url?

Basically I want to know how many people have tweeted a link to a url, but since there are dozens of link shortener out there I don't see any way to do this without having access to all of their url maps. I found a previous question here but it was over a year old and didn't have any new answers.
So #1, does anyone know of a service/API for doing this?
And #2, can anyone think of a way to accomplish this task other than submitting the long url in question to all the popular link shortening sites?
ps- I'm also open to comments about why this is impossible or impractical.
You could perform a Google search (or the equivalent via API) for any pages that link to your page. This is done with the link: keyword. So if you're trying to figure out how many people link to www.example.com (regardless of whether it's through a link shortner URL), then you would just do a Google search for link:www.example.com.
e.g.: http://www.google.com/search?q=link:www.example.com
Note that this will only find pages that have been indexed, so pages that haven't been crawled, or pages that get crawled infrequently, will not show up in the results until a later date (if at all).
Since all sites have different algorithms for shortening the URLs, and these are different sites that most likely do not share their data with each other, how can you hope to find all of them in a single or small number of queries?
All you can do is brute-force it, and even then this might not be any good if a site is content to create a new value for the same long-form URL (especially if you send a different long-form URL that maps to the same place, like http://www.stackoverflow.com/ rather than http://stackoverflow.com/).
In order to really get this to work, there would have to be a site that ALREADY automatically collects all of this information from every site, which the URL shortening sites voluntarily call. And even if you wrote such a site, that doesn't account for the URL-shortening sites already out there who already have data!
In short, I do not see how this is remotely possible, unless I'm wrong about there being such a database somewhere out there.
So months after asking this question I came across a solution to a similar question, that is how to tell how many times a link has been shared on facebook. The solution, via a simple new API call:
http://graph.facebook.com/http://stackoverflow.com
returns the following json data:
{
"id": "http://stackoverflow.com",
"shares": 1627
}

multi user twitter feed

I'm trying to create a widget on my blog that grabs about 20 twitter accounts and displays the last two posts from each account. At the moment I have a jquery based version that runs a for loop for each account. Naturally I bumped up against the 150 requests per hours maximum pretty fast. My question is two fold:
Is there a more efficient way to grab this info? Say opening a twitter account, follow all the users I need and then just reference the friends aspect of my account?
Is there a way to cache the JSON response so I don't bump into the limit? Or do I have to write the entire results to a file and reference that once the limit has been hit?
I should also mention the platform I'm working on is Wordpress/LAMP but I don't care what the technology end up being, I'm open to flash, etc to make this work.
Thanks all
To guarantee showing two posts from each account, you'd probably need to pull each feed down separately. If one author wrote 100 tweets then no one else's tweets would be easily reached within a combined feed.
Your best bet is to get some PHP to download the tweets for you and cache them temporarily on the server, rather than using jquery and AJAX on the client side. A fairly simple Wordpress plugin would do it if you can do PHP. Alex King wrote a Twitter WordPress plugin which can pull down one account, perhaps you could modify it to subscribe to more.
Yeah, your suggestion seems like the most optimal way. Create an extra Twitter account and use the friends timeline to aggregate this data. Keep all the large-scale processing on Twitter's end.
Just be sure to cache your results server-side for about a minute or so.
It is possible to get the latest tweets back from multiple users from one request using Twitter's search API. The q parameter can take multiple from:user values. Below is a quick example, using jQuery:
var query = escape("from:biz OR from:twitter OR from:bob"),
url = "http://search.twitter.com/search.json?callback=?&q=" + query;
$.getJSON(url, function(data){
$.each(data.results, function(i, tweet){
$('body').append("<p>" + tweet.text + " by " + tweet.from_user_name + "</p>");
});
});

Resources