# Cannot parseWikipedia Atom feed

**URL:** <https://www.ruby-forum.com/t/cannot-parsewikipedia-atom-feed/166663>\
**Category:** Ruby\
**Created:** [April 28, 2009, 11:01am UTC](https://www.ruby-forum.com/t/cannot-parsewikipedia-atom-feed/166663 "2009-04-28T11:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunvoip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/e8c25b/32.png) [@arunvoip](https://www.ruby-forum.com/u/arunvoip)\
**Post date:** [April 28, 2009, 11:01am UTC](https://www.ruby-forum.com/t/cannot-parsewikipedia-atom-feed/166663/1 "2009-04-28T11:01:25Z")

</div>

Hi,  
I’m using net/http to parse the rss and atom feeds of various sites.  
So far I was successful in that process except for wikipedia. When I try  
to access the feed url related to a particular topic, a wikipedia eror  
page is displayed showing an access denied error. I dont know whether it  
is the problem related to my code or whether I need any API to parse the  
feeds. My code to parse the feed is:

http = Net::HTTP.start(uri.host, uri.port)  
#making a request to the server  
if uri.query != nil  
response = http.get(uri.path+‘?’+uri.query, ‘User-Agent’ =\>  
‘Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0; Windows XP)’)  
else  
response = http.get(uri.path, ‘User-Agent’ =\> ‘Mozilla/4.0  
(compatible; MSIE 5.5; Windows NT 5.0; Windows XP)’)  
end

and this is the error :  
Request: POST  
[Recent changes - Wikipedia](http://www.wikipedia.com/w/index.php?title=Special:RecentChanges&amp;feed=atom),  
from 61.17.18.34 via [sq16.wikimedia.org](http://sq16.wikimedia.org) (squid/2.7.STABLE6) to ()  
Error: ERR\_ACCESS\_DENIED, errno [No Error] at Tue, 28 Apr 2009 08:07:28  
GMT

Can somebody please give me a suggestion.

Thanks  
Arun
