lib/wmap/utils/wp_detect.rb
# Wordpress detection checkpoint - WP meta tag
Wordpress detection checkpoint - WP meta tag
Wordpress detection checkpoint - WP meta tag
def wp_meta?(url)
  		site=url_2_site(url)
      k=Wmap::UrlChecker.new
      if k.response_code(site) == 200
        k=nil
        doc=open_page(site)
        meta=doc.css('meta')
        if meta.to_s =~ /wordpress/i
          return true
        else
          return false
        end
      end
  		return false
  	rescue => ee
  		puts "Exception on method #{__method__} for url #{url}: #{ee}" if @verbose
  		return false
    end
def wp_meta? ( url ) site = url_2_site ( url ) k = Wmap :: UrlChecker . new if k . response_code ( site ) == 200 k = nil doc = open_page ( site ) meta = doc . css ( 'meta' ) if meta . to_s =~ / wordpress /i return true else return false end end return false rescue => ee puts "Exception on method #{__method__} for url #{url}: #{ee}" if @verbose return false end
Wordpress detection checkpoint - WP meta tag
Wordpress detection checkpoint - WP meta tag
url
<not_specific>