【发布时间】:2011-04-30 01:47:12
【问题描述】:
我在解析 SEC Edgar files 时遇到问题
Here is an example of this file.
最终结果是我希望将<XML> 和</XML> 之间的内容转换为我可以访问的格式。
这是我到目前为止不起作用的代码:
scud = open("http://sec.gov/Archives/edgar/data/1475481/0001475481-09-000001.txt")
full = scud.read
full.match(/<XML>(.*)<\/XML>/)
【问题讨论】:
-
“不起作用”不是很有帮助。什么不起作用?你想发生什么,结果又发生了什么?
标签: ruby xml parsing nokogiri stocks