我正在使用 wikipedia-api 插件从维基百科获取内容页面。从某些日子开始,当我尝试获取内容时收到此错误:
page = Wikipedia.find_by_titles('Foo')
OpenURI::HTTPError: 403 Forbidden
from /usr/lib/ruby/1.8/open-uri.rb:277:in `open_http'
from /usr/lib/ruby/1.8/open-uri.rb:616:in `buffer_open'
from /usr/lib/ruby/1.8/open-uri.rb:164:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `catch'
from /usr/lib/ruby/1.8/open-uri.rb:162:in `open_loop'
from /usr/lib/ruby/1.8/open-uri.rb:132:in `open_uri'
from /usr/lib/ruby/1.8/open-uri.rb:518:in `open'
from /usr/lib/ruby/1.8/open-uri.rb:30:in `open'
from /home/luca/Programming/nerto_5/vendor/plugins/wikipedia-api/lib/mediawiki.rb:139:in `get_xml'
那是什么?
我能怎么做?
谢谢