Important alert: (current site time 5/19/2013 10:26:59 AM EDT)
 

winzip icon

NewsFeed

Email
Submitted on: 11/13/2005 2:20:50 AM
By: Jaidev V.  
Level: Intermediate
User Rating: By 7 Users
Compatibility: ASP (Active Server Pages)
Views: 81924
(About the author)
 
     *Updated*NewsFeed is an RSS News feed grabber. This ASP application will grab RSS and XML feeds and will display them on your website. RSS is a great way of providing up to date data on your site, including News, Entertainment or Blogs. NewsFeed will display any RSS/XML feed that complies with W3C Regulations (www.w3c.org). Newsfeed now incorporates better compatibility (and error handling), and a cache. Enjoy! Update: 12-Nov-05 - I have finally gotten around to updating this archive with a slightly modified version of the code which removes the "Switch from current encoding to specified encoding not supported" error. Hopefully this helps, Jaidev V.
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
'**************************************
' for :NewsFeed
'**************************************
(c) Jaidev Vasudevan 2004-5
Feel free to modify this example any way you like.
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/29/2004 4:01:12 AM

Hi, I hope you like this submission. If you do, please rate it!
(If this comment was disrespectful, please report it.)

 
7/8/2004 5:28:13 AM

Hi,
I have been trying your application but I seem to have trouble with some feeds. I can't get it to work with any of the bbc.co.uk news feeds, I just get a blank screen. I also have a Greek news feed that displays in the viewer as garbled characters, but when clicking the links for the various headings the news appears fine in the Greek alphabet. _ how do you configure your viewer to see the greek alphabet?

Other wise I am pleased with it. Well done.
(If this comment was disrespectful, please report it.)

 
7/26/2004 7:40:30 AMJaidev Vasudevan

Hi, and thanks for your comments. I have recieved a few other emails relating to the BBC feeds being unavaiable, and after a bit of debugging, I think it is because the Encoding type is not specified for the BBC feeds. Hopefully my next update should fix this (I'll arbitrarily add an encoding tag where neccesary), and I'll add some form of cache too...
(If this comment was disrespectful, please report it.)

 
9/13/2004 5:01:47 PM

Hi,

Get an error when trying to display the newsfeeds on default.asp.

error '80004005'
Unspecified error

/rss/default.asp, line 18

Can you help out?
Thanks
(If this comment was disrespectful, please report it.)

 
10/20/2004 6:13:13 AMJaidev V.

Hi! I have updated Newsfeed, and it is now has much better compatibility (works with every site I tested), and includes a cache so that the RSS feed is only checked after a specified time period (decreasing page load time and network traffic). Hope you like it and feel free to post any comments.
Jaidev V.
(If this comment was disrespectful, please report it.)

 
1/1/2005 3:16:53 PM

Hi,

For some reason the app gives errors on following RSS feed. Any ideas what might cause that?

Otherwise the app looks nice!

Cheers,

Simo


**

http://www.yle.fi/etusivu/rss/maak unta.php?id=15


**
XML
Parse Error:
File Position: 44
Line: 1
Line Position: 45
Reason: Switch from current encoding to specified encoding not supported.
Text: Line:
ErrorCode: -1072896657
URL:
***
(If this comment was disrespectful, please report it.)

 
4/4/2005 1:01:17 PMEric

Works perfect, Thankx!
(If this comment was disrespectful, please report it.)

 
4/12/2005 9:18:54 AM

Love your app, but i seem to have som problems with danish feeds. Like this http://www.computerworld.dk/rss.asp and this http://rss.asdf.dk/dr.rss many more all gave me this error XML Parse Error:
File Position: 43
Line: 1
Line Position: 44
Reason: Switch from current encoding to specified encoding not supported.
Text: Line:
ErrorCode: -1072896657
A quick search in google all came back with some info that the problem could be somthing to do with Unicode or UTF-8
/ UTF-16.
Any idea how to fix this?.

And fo my last words. Can it be done to choose to only show 5 newest topics insted of some give me 15-20 topics, the reson why i would like to have RSS feeds om my Active Desktop and if i chose more than 2-3 feeds it will be to big a size to fit in my desktop.

Regards
Trixster

(If this comment was disrespectful, please report it.)

 
5/9/2005 8:56:25 AMJaidev V.

Hi!. I think I have a fix for those
(If this comment was disrespectful, please report it.)

 
6/16/2005 2:29:47 AMastralis

Do you know of a method of easily checking these sites and placing the ones that are updated on the front page so the user can see which weblogs were updated?
(If this comment was disrespectful, please report it.)

 
7/28/2005 11:19:00 AMthewebanalyst

Would you have a fix for this problem?Can you post it online so that we can all see it? Thanks!

I am getting the error below when I try to load http://www.channelregister.co.uk/excerpts.rss

>
> XML Parse Error:
> File Position: 38
> Line: 1
> Line Position: 39
> Reason: Switch from current encoding to specified encoding not
supported.
> Text: Line:
> ErrorCode: -1072896657
> URL:
>

(If this comment was disrespectful, please report it.)

 
9/2/2005 7:51:37 AMolivier

works very well; sparse design also well suited for access with mobile devices like e.g. Opera for Mobiles.
Only one newsfeed (http://www.dpreview.com/news/dpr.rdf) out of 30 did not work. Maybe the developer brings out a newer version?
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.