Extracting RSS Feed Data in ETL Process using KingswaySoft

26 October 2021
KingswaySoft Team

Extracting RSS Feed Data in ETL Process using KingswaySoft

It’s a very common practice to receive news updates using RSS feeds. Even though users are shifting to social media for getting news and headlines that are prominent, these platforms are controlled by algorithms that decide what news goes to which user, and users may see the headlines which the platform decides. RSS feeds provides all the contents that are published by the sources that can be subscribed to. Now, when it comes to integration, extracting RSS feeds data can be a challenging task without a proper tool. In our blog post here today, we will show you could leverage KingswaySoft SSIS Productivity Pack to achieve this with ease, so that you could possibly consume the data in your ETL process with great control.

Initial requirements

RSS feeds are in XML format, and to retrieve the RSS feed information, you will need the HTTP Connection Manager combined with the XML Source component, both found in our SSIS Productivity Pack (download link here). Please find below the Online Help Manual for the above components.

You will also need the URL for the RSS feed that you are reading from.  For the examples below, we are using a public news feed (http://rss.cnn.com/rss/cnn_world.rss).  You can find many such public feeds if you don’t have a specific one currently in mind.

Configuration

We will start by configuring our connection manager.  This involves using the RSS feed’s url as the Base URL as shown below.

RSSFeed_ConnectionManager.png

Since this is a public feed, we do not have any Authentication to enter.  If you do need to authenticate your connection, you would do so in the Authentication tab.  Once this is set, you can click “Test Connection”, and then “Test Connection” again on the window that pops up, and you should see the RSS feed’s XML in the Response Body:

RSSFeed_ConnectionManager - TestConnection.png

Once the HTTP Connection Manager is configured, you can drag an XML Source component to the Data Flow Task and open it.  From the Connection Manager dropdown on the Data Source page, select the HTTP Connection that you just created.  If you need a relative path, or any query string parameters or request headers, you can add them here.  For the RSS Feeds we are reading from, none of those are needed:

RSSFeed_XML Source - Data Source.png

In the Document Designer, click on the Import button in the bottom right of the window and select “XML (Web)”.  This will use the HTTP Connection Manager to import the RSS’s xml into our Document Designer.

RSSFeed_XML Source - Document Designer.png

In the Columns page, you can see what columns will be parsed out from the xml.  There are the “rss” element’s columns, and under that there is "channel", "item" and "group". And if you click the dropdown arrow (see the second image below), you can select “item” to see the columns that will contain values for each RSS feed item.

RSSFeed_XML Source - Columns - Items.png

Managing the RSS Outputs

Now you have 4 outputs that you can send to components downstream:

RSSFeed_DataViewerOutputs.png

The outputs, if you enable a Data Viewer, will look like the following. Note that the "Item" output would be of use to get the news items.

RSSFeed_DataViewer_itemOutput.PNG

You could also get the other outputs as well, optionally, if you wish to get the "rss", "channel" and "group" outputs for any integration requirements. And if you wish to join these outputs together, you could use the _Rowindex and _ParentKeyField that are generated by our component and use the sort and merge out of the component, or our Premium Lookup component, as shown in another blog post that we have (Link here).

Conclusion

The KingswaySoft component can thus be easily configured to get the RSS feeds. The above idea doesnt limit a simple RSS feed, and the document designer in the XML Source component be modified to suite complex XML outputs as well.

Archive

October 2024 1 September 2024 1 August 2024 2 July 2024 1 June 2024 1 May 2024 1 April 2024 2 March 2024 2 February 2024 2 January 2024 2 December 2023 1 November 2023 1 October 2023 2 August 2023 1 July 2023 2 June 2023 1 May 2023 2 April 2023 1 March 2023 1 February 2023 1 January 2023 2 December 2022 1 November 2022 2 October 2022 2 September 2022 2 August 2022 2 July 2022 3 June 2022 2 May 2022 2 April 2022 3 March 2022 2 February 2022 1 January 2022 2 December 2021 1 October 2021 1 September 2021 2 August 2021 2 July 2021 2 June 2021 1 May 2021 1 April 2021 2 March 2021 2 February 2021 2 January 2021 2 December 2020 2 November 2020 4 October 2020 1 September 2020 3 August 2020 2 July 2020 1 June 2020 2 May 2020 1 April 2020 1 March 2020 1 February 2020 1 January 2020 1 December 2019 1 November 2019 1 October 2019 1 May 2019 1 February 2019 1 December 2018 2 November 2018 1 October 2018 4 September 2018 1 August 2018 1 July 2018 1 June 2018 3 April 2018 3 March 2018 3 February 2018 3 January 2018 2 December 2017 1 April 2017 1 March 2017 7 December 2016 1 November 2016 2 October 2016 1 September 2016 4 August 2016 1 June 2016 1 May 2016 3 April 2016 1 August 2015 1 April 2015 10 August 2014 1 July 2014 1 June 2014 2 May 2014 2 February 2014 1 January 2014 2 October 2013 1 September 2013 2 August 2013 2 June 2013 5 May 2013 2 March 2013 1 February 2013 1 January 2013 1 December 2012 2 November 2012 2 September 2012 2 July 2012 1 May 2012 3 April 2012 2 March 2012 2 January 2012 1

Tags