Skip to content

Empty response for Top StoriesΒ #32

@phamthanhnam

Description

@phamthanhnam

For example:

from gnewsclient import gnewsclient
client = gnewsclient.NewsClient()

or:
client = gnewsclient.NewsClient(topic='Top Stories')
then:
client.get_news()
returned []

In gnewsclient.py file, function get_news(self), this line:
if self.topic is None or self.topic is 'Top Stories':
should be fixed by this line:
if self.topic == None or self.topic == 'Top Stories':

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions