this project has made for testing skills of structured query language (SQL)
.
this project analyses DB called news
- Python3
- PostgreSQL DB
- psycopg2 Module
- Install python
- Download flask Module
pip install flask
- Download PostgreSQL DB
- Download psycopg2 Module (DB-API)
pip install psycopg2
- Download oauth2client Module
pip install oauth2client
- Download data from here
to be able using psql
command through your terminal on linux or git bash on windows
you need to add those two paths to $PATH
environment variable
%APPDATA%/PostgreSQL/bin
& %APPDATA%/PostgreSQL/lib
%APPDATA%
it is mean your installition path
download database and change your directory to the same file path
and import it in your DBMS by using this command
psql -d news -f newsdata.sql
to run the project code use this command
python newsSourceCode.py
this project is free to every one who is starting to learn python
Author : Eslam Ayman