Hi, I’m having a issue when attempt to read this page:
http://www.treasury.gov/resource-center/sanctions/SDN-List/Pages/default.aspx
and get the following error:
C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:277:in open_http': 500 Internal Server Error (OpenURI::HTTPError) from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:616:in buffer_open’
from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:164:in
open_loop' from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:162:in catch’
from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:162:in
open_loop' from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:132:in open_uri’
from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:518:in open' from C:/Ruby187/Ruby1.8.7/lib/ruby/1.8/open-uri.rb:30:in open’
from prueba_fecha.rb:11
This is the code I’m using
url =
“Specially Designated Nationals And Blocked Persons List (SDN) Human Readable Lists | Office of Foreign Assets Control”
doc = Hpricot(open(url))
Somebody can help me with it?
