Browse Source

Fix Bootstrap scraper get_latest_version

Phil Scherer 5 years ago
parent
commit
429f9e7223
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/docs/scrapers/bootstrap.rb

+ 2 - 2
lib/docs/scrapers/bootstrap.rb

@@ -37,8 +37,8 @@ module Docs
     end
 
     def get_latest_version(opts)
-      doc = fetch_doc('https://getbootstrap.com/', opts)
-      doc.at_css('#bd-versions').content.strip[1..-1]
+      doc = fetch_doc('https://getbootstrap.com/docs/versions/', opts)
+      doc.at_css('span:contains("Latest")').parent.content.split(' ').first
     end
   end
 end