mattlisiv / newsapi-python

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

Update q param to take list of str #85

Closed jonnymaserati closed 12 months ago

jonnymaserati commented 1 year ago

Addresses issue #82. Tested with the following and it worked:

from newsapi import NewsApiClient
import os

api_key = os.environ.get("NEWSAPI_KEY")

api = NewsApiClient(api_key=api_key)

r = api.get_everything(q=["Wave Inc", "Space Power Technologies", "Emrod"])

Check result in debug console:


>>> r.get('status')
'ok'
mattlisiv commented 12 months ago

Thanks for the update