class VbulletinScraper::V4::ForumScraper
Public Instance Methods
get_forum_title()
click to toggle source
# File lib/vbulletin_scraper/V4/forum_scraper.rb, line 30 def get_forum_title forumTitle = get_item_by_selector_with_attribute('#logo img', 'alt') if forumTitle == '' forumTitle = get_item_by_selector_with_attribute('.logo img', 'title') end if forumTitle != nil return get_raw_text(forumTitle) else return '' end end
get_forum_url()
click to toggle source
# File lib/vbulletin_scraper/V4/forum_scraper.rb, line 22 def get_forum_url pageUrl = get_item_by_selector_with_attribute('base', 'href') if pageUrl != nil return get_raw_text(pageUrl) end return '' end
get_vbulletin_version()
click to toggle source
# File lib/vbulletin_scraper/V4/forum_scraper.rb, line 14 def get_vbulletin_version vbulletinVersion = get_item_by_selector_with_attribute('meta[name="generator"]', 'content') if vbulletinVersion != nil return get_raw_text(vbulletinVersion.gsub('vBulletin', '')) end return '' end
is_valid_vbulletin()
click to toggle source
# File lib/vbulletin_scraper/V4/forum_scraper.rb, line 6 def is_valid_vbulletin if get_vbulletin_version != '' return true else return false end end