Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

A plugin to grab all mentions off of Twitter WordPress

  • SOLVED

On the Codewi.se blog I'd like to grab every mention of our sites. For instance, here is a list of tweets that mention WP Questions:

[[LINK href="http://search.twitter.com/search?q=wpquestions"]]http://search.twitter.com/search?q=wpquestions[[/LINK]]

I'd like grab every such Tweet and have them appear on Codewi.se.

However, I'd also like to show all the tweets that link to us using tinyurls, which obscure the reference to wpquestions. Does anyone know of a way to get such tweets? That is, some service that auto-expands the tinyurls? (As search.twitter.com seems to only occasionally do.)

Answers (3)

2010-11-28

Buzu B answers:

You might be looking for something like this:
[[LINK href="http://yoast.com/wordpress/tweetbacks/"]]http://yoast.com/wordpress/tweetbacks/[[/LINK]]

I don't think it handles tinyurls since that would be a bit hard. I might be wrong but It seems like in order to do that you would have to 'listen' for each twitt that has a tiny url, convert the url and check if it points to your site. That is not really difficult to make, the problem is that it would consume a lot of resources, and most url shorteners would most likely be treated individually. Like I said, I might be wrong, and someone might have a better way to parse those tinyurls.

2010-11-28

Bob answers:

I do know that some tiny url services have an API that can be used to track your links, it would be much easier to interface with them since they already do the heavy lifting ( I do not think tinyurl provides this but several do).

2010-11-29

Lew Ayotte answers:

I think you would have to get a list of every tweet with a TinyURL and use the TinyURL to expand the URL then check to see if it is a link to wpquestions (or whatever).

This would become much too labor intensive...