Re: Storing lists from api into database

2018-04-06 Thread James Farris
I would use the Requests module. It's much nicer and comes loaded with stuff. It's a module used to connect to API's. Here's the docs: http://docs.python-requests.org/en/master/ As far as using what you have, to save it to the database is just another few lines of code. You have to import th

Re: Storing lists from api into database

2018-04-06 Thread James Farris
I would use the Requests module. It's much nicer and comes loaded with stuff. It's a module used to connect to API's. Here's the docs: http://docs.python-requests.org/en/master/ As far as using what you have, to save it to the database is just another few lines of code. You have to import th

Re: Storing lists from api into database

2018-04-06 Thread Mateusz Kurowski
Maybe you should read the documentation first ? :)) 2018-04-06 22:03 GMT+02:00 Mukesh Jha : > My main project is to collect and show the results from news site of a > particular topic. I have use the guardian's api and I have been given 4 > keywords. If I click on any one of the keyword, I need t

Storing lists from api into database

2018-04-06 Thread Mukesh Jha
My main project is to collect and show the results from news site of a particular topic. I have use the guardian's api and I have been given 4 keywords. If I click on any one of the keyword, I need to display all the recent articles related to it. Now what I have understood is: import json,urll