August 17, 2023

tRSSInput – Docs for ESB 5.x

tRSSInput

tRSSInput.png

tRSSInput Properties

Component family

Internet

 

Function

tRSSInput reads RSS-Feeds using
URLs.

Purpose

tRSSInput makes it possible to
keep track of blog entries on websites to gather and organize
information for quick and easy access.

Basic settings

Schema and Edit
Schema

A schema is a row description, it defines the number of fields to be processed and
passed on to the next component.

The tRSSInput component has a
read-only schema that is made of four columns: TITLE, DESCRIPTION,
PUBDATE, and Link.

 

RSS URL

Enter the URL for the RSS_Feed to read.

 

Read articles from

If selected, tRSSInput reads
articles on the RSS_Feed from the date set through the three-dot
[…] button next to the
date time field.

 

Max number of articles

If selected, tRSSInput reads as
many articles as the number entered in the max
amount
field.

 

Die on error

This check box is selected by default. Clear the check box to skip
the row on error and complete the process for error-free
rows.

Global Variables

ERROR_MESSAGE: the error message generated by the
component when an error occurs. This is an After variable and it returns a string. This
variable functions only if the Die on error check box is
cleared, if the component has this check box.

NB_LINE: the number of rows read by an input component or
transferred to an output component. This is an After variable and it returns an
integer.

A Flow variable functions during the execution of a component while an After variable
functions after the execution of the component.

To fill up a field or expression with a variable, press Ctrl +
Space
to access the variable list and choose the variable to use from it.

For further information about variables, see Talend Studio
User Guide.

Usage

This component is generally used as an input component. It
requires an output component.

Limitation

Due to license incompatibility, one or more JARs required to use this component are not
provided. You can install the missing JARs for this particular component by clicking the
Install button on the Component tab view. You can also find out and add all missing JARs easily on
the Modules tab in the Integration perspective
of your studio. For details, see https://help.talend.com/display/KB/How+to+install+external+modules+in+the+Talend+products
or the section describing how to configure the Studio in the Talend Installation and Upgrade
Guide
.

Scenario: Fetching frequently updated blog entries.

This two-component scenario aims at retrieving frequently updated blog entries from a
Talend local news RSS feed using the tRSSInput component.

  1. Drop the following components from the Palette onto the design workspace: tRSSInput and tLogRow.

  2. Right-click to connect them using a Row >
    Main link.

    Use_Case_tRSSInput.png
  3. In the design workspace, select tRSSInput,
    and click the Component tab to define the basic
    settings for tRSSInput.

    Use_Case_tRSSInput2.png
  4. Enter the URL for the RSS_Feed to access. In this scenario, tRSSInput links to the Talend RSS_Feed:
    http://feeds.feedburner.com/Talend.

  5. Select/clear the other check boxes as required. In this scenario, we want to
    display the information about two articles dated from July 20, 2008.

  6. In the design workspace, select tLogRow and
    click the Component tab to define its basic
    settings. For more information about tLogRow
    properties, see tLogRow properties.

  7. Save the Job and press F6 to execute
    it.

    Use_Case_tRSSInput3.png

    The tRSSInput component accessed the RSS feed
    of Talend website on your behalf and organized the
    information for you.

    Two blog entries are displayed on the console. Each entry has its own title,
    description, publication date, and the corresponding RSS feed URL address. Blogs
    show the last entry first, and you can scroll down to read earlier
    entries.


Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x