Guide: how to filter and convert multiple RSS feeds into HTML code using RSS2HTMLPro.ASP script for ASP and ASP.NET - ByteScout

Guide: how to filter and convert multiple RSS feeds into HTML code using RSS2HTMLPro.ASP script for ASP and ASP.NET

  • Home
  • /
  • Articles
  • /
  • Guide: how to filter and convert multiple RSS feeds into HTML code using RSS2HTMLPro.ASP script for ASP and ASP.NET
Quick Start tutorial: filter RSS content and convert int HTML using RSS2HTMLPro.asp script

MultiRSS2HTML.asp Tutorial

This is a quick start tutorial on converting and filtering mutliple RSS feeds into HTML code using MultiRSS2HTML ASP script in ASP or ASP.NET environment. This script is included into commercial “Pro” version of freeware RSS2HTML.asp script.

This script can be used standalone or incorporated into existing web-page.

Benefits of PRO version:

  • better support for RSS and ATOM feeds;
  • multi-keywords filtering support with ability to use filtering phrases like “HTML-php” with exclude “-” and include “+” operators;
  • filtering by title, description, link is supported;
  • customized date and time format (to display for items) support;
  • support for multiple RSS feeds to HTML conversion (via MultiRSS2HTML.asp included into PRO version);
  • tech support, help with customization and free updates within 12 months;

HTML template for RSS2HTML conversion

PRO version uses the following HTML template code (you can adjust this code in helper RSS2HTMLProForMultiRSS2HTML.asp script to fit your design or contact us to help you if you are a registered user of PRO version):

‘ ##### Main template constants
‘ ##### {CHANNELTITLE} will be replaced with item Channel Title
‘ ##### {CHANNELURL} will be replaced with item Channel Url
MainTemplateHeader = “<table><tr><td><a href=”& “””{CHANNELURL}””” & “>{CHANNELTITLE}</a></td></tr>”
MainTemplateFooter = “</table>”
‘ #####

‘ ##### Item template.
‘ ##### {LINK} will be replaced with item link
‘ ##### {TITLE} will be replaced with item title
‘ ##### {DESCRIPTION} will be replaced with item description
‘ ##### {DATE} will be replaced with item date and time
‘ ##### {COMMENTSLINK} will be replaced with link to comments (If you use RSS feed from blog)
‘ ##### {CATEGORY} will be replaced with item category
ItemTemplate = “<tr><td><strong>{DATE} {TIME}</strong><br/><strong>{CATEGORY}<br/></strong><a href=” & “””{LINK}””” & “>{TITLE}</a><BR>{DESCRIPTION}</td></tr>”
‘ #### You can set Date and Time macros formatting:
‘#### Date Time format
‘#### dd – Day
‘#### DD – Full Day Name
‘#### mm – Month
‘#### MMMM – Full Month Name
‘#### yyyy – Year
‘#### HH – Hour
‘#### MM – Minute
‘#### SS – Second
‘#### Offset – Time offset from UTC
DateTemplate = “dd.mm.yyyy”
TimeTemplate = “HH:MM:SS Offset”

Converting and filtering multiple RSS feeds

To add new RSS feed to process add URL to this feed into URLs array inside MultiRSS2HTML.asp script. For example:

‘ ##### Array RSS Sources #########
URLs = Array( _
“http://digg.com/rss/indexprogramming.xml”, _
“http://feeds.feedburner.com/MonkeyBites”)

Links to RSS feeds are separated by comma. _ symbol is used to break a line in ASP.

Set keywords to filter content from RSS feeds:

Use Keywords variable to set keywords for filtering RSS feed. Positive keywords must include “+” symbol or space and negative keywords are indicated by use of “-” symbol. For example (see screenshot below): Keywords=”Linux+device”

multirss2html_produced_html_from_keywords_in_ie

You can control filtering of RSS feeds by title, description or URL to full article by changing the following variables:

  • FilterByTitle – (set True or False) filter items from RSS by their titles
  • FilterByDescription – (set True or False) filter items from RSS by their descriptions
  • FilterByURL – (set True or False) filter items from RSS by their links to full articles

IMPORTANT: change these variables inside helper script RSS2HTMLProForMultiRSS2HTML.asp ( included into PRO version)

Include HTML from script into existing page:

To include HTML generated by the script please use virtual include ASP command.
Example:

< p>RSS content is displayed below:</p>
< hr>
< !–#include virtual=”MultiRSS2HTML.asp”–>
< hr>

prev
next