Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Simple example (News)

Start with the "Basic RSS Source Template" from the Infinit.e.Manager - Sources GUI:

Code Block
languagejavascript
 {
    "communityIds": ["4c927585d591d31d7b37097a"],
    "description": "Create a description of your source here.",
    "extractType": "Feed",
    "harvestBadSource": false,
    "isApproved": true,
    "isPublic": true,
    "mediaType": "Social",
    "tags": [
        "tag1",
        "tag2"
    ],
    "title": "Basic RSS Source Template",
    "url": "http://blahblahblah.com/blah.rss"
}

...

Code Block
languagejavascript
  {
    "description": "A test RSS news feed, using OpenCalais",
    "extractType": "Feed",
    "isPublic": true,
    "mediaType": "News",
    "tags": [
        "news",
        "england"
    ],
    "rss": {"waitTimeOverride_ms": 1000},
    "title": "BBC News",
    "url": "http://feeds.bbci.co.uk/news/rss.xml?edition=uk",
    "useExtractor": "OpenCalais"
}

Complex example (Twitter)

By contrast the next example does not use any of the commercial extraction engines (in practice, "AlchemyAPI-metadata" could be used), instead it uses the custom scripting engine based on regex and Javascript.

...