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)
Metadata
Release files for fetchrss-api 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fetchrss-api-0.1.4.tar.gz | 3.6 kB | Details |
Release files / fetchrss-api-0.1.4.tar.gz
| Download URL | fetchrss-api-0.1.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f847abfac4fb7305c7eadf69e7916b965cb46cdf86d1f408da1208cb463b7ab
|
|
BLAKE2b-256 checksum How to use checksums |
bf81e7a2c34d518fba9960472000cee9c382935c5905b8dc44b39c949a7c2348
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|