"url_shortener" is a Ruby gem/library that wraps the Bit.ly API for Ruby applications. A implementation tutorial for the wrapper can be accessed from the GitBug repository. Though not directly supported by Bit.ly, the wrapper is endorsed for use on the Bit.ly developer site. The Bit.ly API allows developers to implement programmatic shortening, URL expansion, sharing, and tracking of links (URLs). Unique user-level and aggregate links can also be created to let users view complete, real-time traffic and referrer data, as well as location and metadata.
Getting structured data out of web pages — often referred to as "web scraping" — is a real need, particularly for people whose job it is to prepare and analyze the information that's available in web pages. Meeting this need is right up the alley of a data extraction tool, such as Import.io.