RSS

Rss Connector #

Register RSS Connector #

curl -XPUT "http://localhost:9000/connector/rss?replace=true" -d '{
  "name" : "RSS Connector",
  "description" : "Fetch items from a specified RSS feed.",
  "category" : "website",
  "icon" : "/assets/icons/connector/rss/icon.png",
  "tags" : [
    "rss",
    "feed",
    "web"
  ],
  "url" : "http://coco.rs/connectors/rss",
  "assets" : {
    "icons" : {
      "default" : "/assets/icons/connector/rss/icon.png"
    }
  }
}'

Use rss as a unique identifier, as it is a builtin connector.

Update coco-server’s config #

Below is an example configuration for enabling the RSS Connector in coco-server:

connector:
  rss:
    enabled: true
    interval: 30s
    queue:
      name: indexing_documents

Explanation of Config Parameters #

FieldTypeDescription
enabledbooleanEnables or disables the RSS connector. Set to true to activate it.
intervalstringSpecifies the time interval (e.g., 60s) at which the connector will check for updates.
queue.namestringDefines the name of the queue where indexing tasks will be added.

Use the RSS Connector #

//request
curl  -H 'Content-Type: application/json'   -XPOST "http://localhost:9000/datasource/" -d'
{
    "name":"My RSS feed",
    "type":"connector",
    "connector":{
        "id":"rss",
         "config":{
            "urls": [ "The RSS link" ]
        }
    }
}'

Below is the config parameters supported by this connector.

FieldTypeDescription
urls[]stringThe array list of the rss feet, support more than one url.
Edit Edit this page