module SellDotCom

Constants

VERSION

Public Class Methods

is_active?(url) click to toggle source
# File lib/selldotcom.rb, line 10
def self.is_active?(url)
  suspended_image_xpath = "//img[@src='http://i.sell.com/i/i_suspend.gif']"
  response = Typhoeus::Request.get(url)
  doc = Nokogiri::HTML(response.body)
  doc.xpath(suspended_image_xpath).count < 1 ? true : false
end