Skip to content

Commit

Permalink
fresh fix for collecting BSI
Browse files Browse the repository at this point in the history
  • Loading branch information
apsheronets committed Jul 15, 2014
1 parent c5ccb40 commit ec30fb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion get-bitfinex-sentiment-index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
driver = Selenium::WebDriver.for :firefox
driver.get "https://www.bitfinex.com/pages/stats"

page = Nokogiri::HTML(driver.page_source)
#page = Nokogiri::HTML(driver.page_source)
# bitfinex hided the data into <!-- -->
commented_part = driver.page_source.match(/<!--\s*<h4>Bitfinex Sentiment Index<\/h4>(.*)-->/m)[1]
page = Nokogiri::HTML(commented_part)

driver.quit

Expand Down

0 comments on commit ec30fb3

Please sign in to comment.