Startup North recently came up with a solid resource for the Canadian startup scene. I thought I'd do my part and put in a bit of elbow grease to help out. They put together a list of "Entrepreneurs, Thought Leaders, Gadflys and Others", which I thought would be great as an actual Twitter list. Hopefully StartupNorth is ok with this!

The How

Grab the List of Twitter Users

I grabbed some of the raw HTML from their website, and took just the relevant <ul> to make things simpler. JQuery to the rescue in order to extract the Twitter user names:

entries = $("#thought-leaders li a.twitter-follow-button")

entries.each( (index,element) ->
    link = element.href
    match = /.*\/(.*)/i.exec(link)
    console.log match[1]

I then used the Twitter gem to automatically insert all of these users into a list (you'll need to generate your own app at Twitter Developers):

t = Twitter.configure do |config|
  config.consumer_key = 'foo-bar'
  config.consumer_secret = 'foo-bar'
  config.oauth_token = 'foo-bar'
  config.oauth_token_secret = 'foo-bar'

Then it was a simple matter of using the gem to add to the list (created manually):

  t.list_add_members("bkparso", "sunorth-thought-leaders", ["aprildunford", "johnphilipgreen", "zakhomuth", .....])

The Where

Follow the list here for some startup goodness!

Blog Logo

Brandon Parsons



Brandon Parsons

My Personal Blog

Head back to the main page