Hawker gem – get the profile information from Github, Twitter or Instagram without the API

Ruby on Rails / Rubygems

Have you ever tried to pull the information from the social profile using given URL? Configuring the API access may be a time-consuming and difficult thing to do. On the other hand, scraping a profile may be not as easy as it seems to be. To solve that kind of problems I created the Hawker gem. For now, it supports Github, Twitter, and Instagram. You check it on https://github.com/rubyhero/hawker.

The gem is using the RestClient and Nokogiri gems. It’s nothing complicated but a nice place to start. I plan to add the support for other social media providers.

I mentioned this in the documentation already but it’s worth to say it again: if you have the API access it’s always better to use it. Web scraping is always slower and less stable solution.

If you have any suggestions, feel free to open a new issue on the Github repo page!