Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add neither-nor statement and capitalization #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ newsapi

Python wrapper around ``A JSON API for live news and blog headlines`` (a.k.a. ``News Api``): https://newsapi.org/

**NOTE:** This library and its author are not endorsed by or affiliated with `NewsApi.org <https://newsapi.org/>`_.
**NOTE:** This library and its author are neither endorsed by nor affiliated with `NewsApi.org <https://newsapi.org/>`_.


Installation
Expand Down Expand Up @@ -133,21 +133,21 @@ All methods are accessible via:
====================================== ========================================================================================================== =============================================================================================================== ========================
Method Parameters Description Returns
====================================== ========================================================================================================== =============================================================================================================== ========================
``get()`` category (optional), language (optional), country (optional), attributes_format (optional Default:True). Generic request to NewsApi to get sources as needed with optional params. (default : empty returns all sources ``AttrDict``
``get()`` category (optional), language (optional), country (optional), attributes_format (optional, Default:True). Generic request to NewsApi to get sources as needed with optional params. (default : empty returns all sources ``AttrDict``
``all()`` No parameters needed. wrapper around get() to get all sources unfiltered. ``AttrDict``
``get_by_category()`` category (required). The category you would like to get sources for. ``AttrDict``
``get_by_language()`` language (required). The 2-letter ISO-639-1 code of the language you would like to get sources for. ``AttrDict``
``get_by_country()`` country (required). The 2-letter ISO 3166-1 code of the country you would like to get sources for. ``AttrDict``
``information()`` No parameters needed. Sets up everything by sending an unfiltered request and then sorting it. ``Self``
``all_sorted_information()`` No parameters needed. gives back all the sources. ``Array``
``all_sorted_information()`` No parameters needed. Gives back all the sources. ``Array``
``all_categories`` detailed (optional, Default: False, gives all the information of sources group by categories). Gets all the categories available by newsapi and grouped with info if detailed set to true. ``dict_keys``/``Dict``
``all_languages`` detailed (optional, Default: False, gives all the information of sources group by languages). Gets all the languages available by newsapi and grouped with info if detailed set to true. ``dict_keys``/``Dict``
``all_countries`` detailed (optional, Default: False, gives all the information of sources group by countries). Gets all the countries available by newsapi and grouped with info if detailed set to true. ``dict_keys``/``Dict``
``all_base_information()`` No parameters needed. gives back all the name, id pairs of the available sources offered by newsapi. ``Dict``
``all_ids()`` detailed (optional, Default: False, gives name, id pair of all the sources). gives back all the ids of the available sources offered by newsapi. ``dict_values``/``Dict``
``all_names()`` detailed (optional, Default: False, gives name, url pair of all the sources). gives back all the names of the available sources offered by newsapi. ``dict_keys``/``Dict``
``all_urls()`` detailed (optional, Default: False, gives name, url pair of all the sources). gives back all the urls of the available sources offered by newsapi. ``dict_values``/``Dict``
``search()`` name (required, the name of the source you wanna search for). gives back all the matches from the given name of the source to avaiable ones by newsapi with all the info. ``Array``
``all_base_information()`` No parameters needed. Gives back all the name, id pairs of the available sources offered by newsapi. ``Dict``
``all_ids()`` detailed (optional, Default: False, gives name, id pair of all the sources). Gives back all the ids of the available sources offered by newsapi. ``dict_values``/``Dict``
``all_names()`` detailed (optional, Default: False, gives name, url pair of all the sources). Gives back all the names of the available sources offered by newsapi. ``dict_keys``/``Dict``
``all_urls()`` detailed (optional, Default: False, gives name, url pair of all the sources). Gives back all the URLs of the available sources offered by newsapi. ``dict_values``/``Dict``
``search()`` name (required, the name of the source you wanna search for). Gives back all the matches from the given name of the source to avaiable ones by newsapi with all the info. ``Array``
====================================== ========================================================================================================== =============================================================================================================== ========================

**NOTE:** By default all ``newsapi`` responses are formatted as ``JSON``, ``AttrDict`` is just a wrapper around Dictionary which enables to do content.status as well as content['status'], but can't do it in nested dicts.
Expand Down