ewelkaw / charities_data_scraping

Script to scrap data and save them in postgres database.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

charities_data_scraping

Training script to scrap data and save them in postgres.

  1. Prepare venv for project and install requirements:
$ pip3 install -r requirements.txt
  1. First of create database for data
$ psql -c "CREATE DATABASE charity;"
  1. Download csv files using python script:
$ python3 csv_files_downloading.py
  1. Upload data to database using bash script:
$ ./loading_data_to_db.sh charity
  1. Profit!

IMPORTANT ASSUMPTIONS

  1. Everything is in one table because my task was to scrap data not to plan the database structure, but definitely there is a place for relational database
  2. Some constants are taken from website because mostly scraping is one time operation so it need to be done effectively (here we don't know anything about checking if there is new data incoming)

About

Script to scrap data and save them in postgres database.


Languages

Language:Python 63.6%Language:Shell 36.4%