RapidAPI logo

Full-Text RSS

フリーミアム
開発者 fivefilters
更新日 6ヶ月前
ツール
8.2/10
人気度
784ms
レイテンシ
100%
正常稼働率

「Full-Text RSS 」のドキュメント

フルテキストRSSは、ウェブページから記事コンテンツを抽出し、部分的なウェブフィードをフルテキストフィードに変換することができます。

結果をRSSまたはJSONで取得します。

あなたはMashape(無料でのテスト)を通じて当社のホストサービスを利用することができます。また、当社サイトを訪問して、自家用バージョンを購入することもできます。

全文を表示する
2. Feed Conversion
GETConvert Feed
1. Article Extraction
POSTExtract Article
GETConvert Feed

部分フィードをフルテキストフィードに変換します。入力URLから抽出された完全なコンテンツを含むRSS 2.0フィード(XMLまたはJSON)を出力します。入力URLは、部分フィードまたはウェブページにすることができます。

ヘッダーパラメータ
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
必須パラメータ
urlSTRING
REQUIREDURL to a partial feed or a standard HTML page. You can omit the 'http://' prefix if you like.
パラメータ(Option)
formatSTRING
OPTIONALThe default output is RSS. The only other valid output format is JSON. To get JSON output, pass format=json in the querystring. Exclude it from the URL (or set it to ‘rss’) if you’d like RSS.
summaryNUMBER
OPTIONALIf set to 1, an excerpt will be included for each item in the output.
maxNUMBER
OPTIONALFeed input only - the maximum number of feed items to process.
linksSTRING
OPTIONALLinks can either be preserved (default), made into footnotes, or removed. None of these options affect the link text, only the hyperlink itself. Valid values: 'preserve', 'remove', 'footnotes'
contentSTRING
OPTIONALIf set to 0, the extracted content will not be included in the output. Set to 'html' or 'text' for plain text output (wrapped at 70 chars). 'text0' to disable forced text wrapping. 'text##' to wrap after ## characters, e.g. 'text80'.
xssNUMBER
OPTIONALUse this to enable XSS filtering. We have not enabled this by default because we assume the majority of our users do not display the HTML retrieved by Full-Text RSS in a web page without further processing. If you subscribe to our generated feeds in your news reader application, it should, if it's good software, already filter the resulting HTML for XSS attacks, making it redundant for Full-Text RSS do the same. Similarly with frameworks/CMSs which display feed content - the content should be treated like any other user-submitted content. If you are writing an application yourself which is processing feeds generated by Full-Text RSS, you can either filter the HTML yourself to remove potential XSS attacks or enable this option. This might be useful if you are processing our generated feeds with JavaScript on the client side - although there's client side xss filtering available too. Note: if enabled this will also remove certain elements you may want to preserve, such as iframes.
langNUMBER
OPTIONALLanguage detection. If you'd like Full-Text RSS to find the language of the articles it processes, you can use one of the following values: 0 - Ignore language; 1 - Use article metadata (e.g. HTML lang attribute) or feed metadata (default value); 2 - As above, but guess the language if it's not specified; 3 - Always guess the language, whether it's specified or not. If language detection is enabled and a match is found, the language code will be returned in the <dc:language> element inside the <item> element.
use_extracted_titleNUMBER
OPTIONALFeed input only - item titles in the original feed do not get changed by default - we assume item titles in feeds are not truncated. If you'd like them to be replaced with titles Full-Text RSS extracts, use this parameter in the request (the value does not matter).
acceptSTRING
OPTIONALTell Full-Text RSS what it should expect when fetching the input URL. By default Full-Text RSS tries to guess whether the response is a feed or regular HTML page. It's a good idea to be explicit by passing the appropriate type in this parameter. This is useful if, for example, a feed stops working and begins to return HTML or redirecs to a HTML page as a result of site changes. In such a scenario, if you've been explicit about the URL being a feed, Full-Text RSS will not parse HTML returned in response. If you pass accept=html (previously html=1), Full-Text RSS will not attempt to parse the response as a feed. This increases performance slightly and should be used if you know that the URL is not a feed. Note: If excluded, or set to auto, Full-Text RSS first tries to parse the server's response as a feed, and only if it fails to parse as a feed will it revert to HTML parsing. In the default parse-as-feed-first mode, Full-Text RSS will identify itself as PHP first and only if a valid feed is returned will it identify itself as a browser in subsequent requests to fetch the feed items. In parse-as-html mode, Full-Text RSS will identify itself as a browser from the very first request.
parserSTRING
OPTIONALThe default parser is Gumbo, a fast HTML5 parser. HTML5-PHP is an HTML5 parser implemented in PHP. It's slower, but can often produce better results. Use this parameter to explicitly request 'gumbo', 'html5-php', or 'libxml' parsing.
コードスニペット
unirest.get("https://full-text-rss.p.rapidapi.com/makefulltextfeed.php?format=json&summary=1&max=5&links=remove&content=1&xss=1&lang=2&use_extracted_title=1&accept=auto&parser=html5php&url=feeds.bbci.co.uk%2Fnews%2Frss.xml")
.header("X-RapidAPI-Host", "full-text-rss.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
サンプルレスポンス
概要
リクエストURL: https://full-text-rss.p.rapidapi.com/makefulltextfeed.php
リクエストメソッド: GET
レスポンスヘッダ
レスポンスボディ

SDKをインストール(NodeJS)

インストール

Node.jsでUnirestを使用するには、NPMモジュールをインストールしてください。

$ npm install unirest

インストール完了後は、簡単にリクエストを行うことができるようになります。

var unirest = require('unirest');

リクエスト

unirest.get("https://full-text-rss.p.rapidapi.com/makefulltextfeed.php?format=json&summary=1&max=5&links=remove&content=1&xss=1&lang=2&use_extracted_title=1&accept=auto&parser=html5php&url=feeds.bbci.co.uk%2Fnews%2Frss.xml")
.header("X-RapidAPI-Host", "full-text-rss.p.rapidapi.com")
.header("X-RapidAPI-Key", "ログインしてキーを取得")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2認証
クライアントID
クライアントシークレット
OAuth2認証