pip install newsapi

C++
>>> for data in news.generate():

Source

Also in C++: