mattlisiv / newsapi-python

A Python Client for News API
MIT License
375 stars 130 forks source link

v2/everything - multiple keywords #61

Closed sputnik44 closed 4 years ago

sputnik44 commented 4 years ago

Hi there,

I tried using multiple keywords but nomatter how I join them, I'm not receiving results any close to what I receive when I use the classic GogleNews Search. My code:

from newsapi import NewsApiClient
api = NewsApiClient(api_key='xxx')
keywords = ['Neubau', 'Weiße', 'Stadt']
all_articles = api.get_everything(q=','.join(keywords),
                                  sort_by='publishedAt',
                                  language='de')

besides ',' I tried joining the keywords by:

Is there something I miss?

Bitsy-Chuck commented 3 weeks ago

@sputnik44 I see you marked this as completed.... What was the solution. Getting results which are nowhere close to the keywords provided by me