Skip to content

lightyrs/busybody

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

busybody

busybody is a rubygem that fetches the primary twitter and facebook urls from any website.
As of the initial commit, it has a very high success rate (~85%), however, I will be updating this project on an ongoing basis with various speed and relevance improvements.

Usage

busybody depends on nokogiri and httparty

gem install busybody

There is only one method, "pry", which takes two required parameters, the site name and url.
The site name is used to detect the relevancy of a social url when there are multiple urls present.

BusyBody.pry(name,url)

This:

BusyBody.pry('Michael Jackson', 'michaeljackson.com')

will return a hash:

{
  "twitter"  => "http://twitter.com/michaeljackson",
  "facebook" => "http://www.facebook.com/michaeljackson"
}

About

A gem that fetches the primary twitter and facebook urls from any website.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages