Skip to main content

Republic Time : Python module to access latest news and more from republictime.com.

Project description


Republic Time : Python module to access latest news and more from republictime.com.

Republic Time module is a Reusable python app which provides a features to access latest news and more from republictime.com.


Installation:

You can install Republic Time module from PyPI using pip. pip install republictime


Configuration :

1. In order to use Republic Time module it required an API Key, You can generate the API Key from republictime.com.

2. Open your Text Editor/Python CLI and write the following code.

from republictime.articles import Article
article = Article("article", "PASTE_YOUR_CRICAPI_API_KEY_HERE")

3. Access Breaking News from Republic Time.

To access Breaking News it requires to invoke the get_article() method.

article.get_article()

4. Access Promoted News from Republic Time.

To access Promoted News it requires to set promoted=True.

article.get_article(promoted=True)

5. Access Trending News from Republic Time.

To access the Trending News it requires to set trending=True.

article.get_article(trending=True)

6. Access both Promoted & Trending News from Republic Time.

To access Promoted & Trending News it requires to set promoted=True, trending=True.

article.get_article(promoted=True, trending=True)

Project details


Download files

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

Files for republictime, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size republictime-1.0.3-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size republictime-1.0.3.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page