Q: Reading text from other sites written by angularjs I want to read the value 10059 from another site. It contained in the p tag looks like this, and i want it.
<p class="currency_desc">10059 usd</p>

What I did in rails app:
require 'nokogiri'
require 'open-uri'
doc = Nokogiri :: HTML (open ('http://sample.com'))
content = doc.to_html
....
....

But the content I got about is:
<p class="currency_desc">{{ buy_rates}} usd</p>

It is written in angularjs.
How do I do it?

A: You can use nokogiri's commands to search for element in your response then get the value you want, something like:
  page = Nokogiri::HTML(open(url))
  buy_rates = page.search("p.currency_desc").text()

Some searches page.search("p.currency_desc") can return an Array of elements which you can iterate through if the page has more then one element with same class and tag
