Super simple Python NewsAPI wrapper
This library is based in pure Python, and it doesn't need any external libraries
- It gets JSON data from NewsAPI
- It parses it, to Python text data
- Rearanges it
- Converts it back to JSON
- This library gives another [] since its variables were saved in a list. Although, gTTS doesn't bother those extra stuff, so it's okay.
First, you'll have to initialize getAPI function like this:
getAPI("my-api-token")
Then, you have 2 functions. One is getNews(), and other is headlines()
If you see any strange stuff, then report it.