Write Article from Newsfeed (RSS/Atom)

Writes an article from a newsfeed (RSS/Atom).

Input

This model uses the latest news from RSS/Atom newsfeeds to generate comprehensive articles. It extracts the relevant data from these feeds, which are XML-formatted plain texts, to create engaging and informative pieces by googling the feed results and writing an article based on that. Atom is an alternative XML format to RSS feed that provides access to the same content.

[1.0.0]:
First Version
VersionAI ModelCreatedLink
1.0.004.05.2023

API

The REST API allows you to call the tool with the same costs as when running the tool. Please generate an Personal access token before using the REST API.

Parameters

  • feed_url (RSS URL): The URL of the feed
  • max_feed_results_used (Feed results used): The number of feed results that are used
  • language (Language of Google search): The language to search in
  • location (Location of Google search): The location of the end user
  • words (Number of words): The number of words of the article
  • Call the REST API by cURL
    curl -v -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN" https://api.anysolve.ai/rest/v1/u-ba835df8268fc301-write-article-from-newsfeed-rssatom/1.0.0?feed_url=&max_feed_results_used=3&language=lang_en&location=at&words=400
  • Install the package with pip
    python3 -m pip install anysolve
  • Run in python3
    import os
    from anysolve import AnySolve
    anysolve_token = os.environ.get('ANYSOLVE_PERSONAL_ACCESS_TOKEN') # Resolve your personal access token here
    client = AnySolve(anysolve_token)
    res = client.run('u-ba835df8268fc301-write-article-from-newsfeed-rssatom','1.0.0', {'feed_url': '', 'max_feed_results_used': '3', 'language': 'lang_en', 'location': 'at', 'words': '400'})
    print(res)
  • Coming soon: Within AnySolve ChatComplete prompts you can use the following command to execute the task:
    /run('u-ba835df8268fc301-write-article-from-newsfeed-rssatom','1.0.0', feed_url='', max_feed_results_used='3', language='lang_en', location='at', words='400')