The service “RSS Reading” is necessary for the user to monitor the periodically refreshable information on the web-sites. The given service gives the opportunity to input any random Internet address or select it from the list by default and get the description list of latest news or new site articles. For correct work of this service the input address must be a link to RSS of the site. These links can be found almost at any information portal. It is enough to find the following image on the main page of the site, click it and copy the link from the address bar. Then one can paste this address into the relevant field on the service page and click “Get RSS”. After the service processes the link, the list of article descriptions will appear. Each description includes headline of piece of news or article, page references, where it is posted, dates of posting and the brief on-line text summary. Service interface has the following form:
Access to the service via the API
To access the service «RSS Reader» via the API, you should send an AJAX-request (type: POST) to the address https://corpus.by/RssReader/api.php. With an input array data the following parameters are passed:
- localization — result localization.
- url — RSS web-page address.
Example of AJAX-request:
$.ajax({
type: “POST”,
url: “https://corpus.by/RssReader/api.php”,
data:{
“localization”: “be”,
“url”: “https://budzma.org/feed”
},
success: function(msg){ },
error: function() { }
});
The server returns a JSON-array with the following parameters:
- url — input RSS web-page address.
- result — resulting fragment of the html-page with texts and RSS parameters and tools for their voicing.
For example, the following reply will be formed on the above listed AJAX-request:
[
{
“url”: “https://budzma.org/feed”,
“result”: “<div class=”divider”></div><h2 class=”sub-caption-smaller”>Увесь RSS слухайце тут:</h2><div id=”rssResultTextall” style=”display : none;”>Чыта+ю наві+ны.На літаратурны фэст з “Будзьма беларусамі!” .. Сёлета, 4 жніўня на ІІ абласное свята беларускай паэзіі ў в. Зачэпічы (Гродненская вобласць) завіталі і сябры грамадска-культурніцкай кампаніі “Будзьма беларусамі!”. <…>”
}
]
Service page: https://corpus.by/RssReader