Skip to main content

A simple interface for FetchRSS.com API

Project description

fetchrss-api: Python Client Library for FetchRSS API

Installation

From Python Package Index:

pip install fetchrss-api

Directly from the Git repository on GitHub:

pip install git+https://github.com/Impacto-jor/fetchrss-api.git

or

git clone https://github.com/Impacto-jor/fetchrss-api.git
cd fetchrss-api
python setup.py install

Tested on Python 3.7.0 (you may run using 3.6 by installing the dataclasses package).

Usage

Learn by example:

from fetchrss import FetchRSS

# Instantiate the object
api = FetchRSS(access_token="<super secret>")

# Create a new feed using URL only
feed = api.feed_create(url="https://some-url/")
print(f"Feed created: {feed}")

# Create a new feed using all parameters
feed = api.feed_create(
    url="https://some-url/",
    news_selector="<news selector>",
    title_selector="<title selector>",
    content_selector="<content selector>",
    pic_selector="[optional picture selector]",
    date_selector="[optional date selector]",
    author_selector="[optional author selector]",
    link_selector="[optional link selector]",
    pic_src_param="[optional picture source parameter]",
    date_format_param="[optional date format parameter]",
)
print(f"Feed created: {feed}")

# List all available feeds
for feed in api.feeds():
    print(feed)

# Get RSS entries for a specific feed
for entry in api.rss(feed):
    print(entry)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fetchrss-api-0.1.4.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file fetchrss-api-0.1.4.tar.gz.

File metadata

  • Download URL: fetchrss-api-0.1.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for fetchrss-api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5f847abfac4fb7305c7eadf69e7916b965cb46cdf86d1f408da1208cb463b7ab
MD5 b834f997e1e638e50b331f6f0a057578
BLAKE2b-256 bf81e7a2c34d518fba9960472000cee9c382935c5905b8dc44b39c949a7c2348

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page