Skip to content

Latest commit

 

History

History
114 lines (79 loc) · 2.7 KB

README.md

File metadata and controls

114 lines (79 loc) · 2.7 KB

SWIFT codes Scraper

Python Tool for Scraping SWIFT/BIC codes


Table of Contents

  1. About The Project
  2. Installation
  3. Run
  4. Project Structure


About The Project

This code scraps public available SWIFT codes and its metadata from theswiftcodes.com.



Installation

To get a local copy up and running follow these simple steps.

Clone repository

In your terminal, change the current working directory to the location where you want the cloned directory.

As shown below, type git clone in the terminal, paste the Github repository URL, and press “enter” to create your local clone.

git clone https://github.com/Tax-Justice-Network/swift_codes_scraper.git

Set up environment

conda env create -f environment.yml

conda activate swift_codes_scraper

Visual Studio Code

After running the code above in Terminal, you still have to select the environment in VSCode. Click F1, select Python: Select Interpreter, click Enter and select the one that has swift_codes_scraper in brackets. If you don't see the environment in the list, reload VS Code.



Run

To scrape SWIFT data automatically, without interaction, you can issue (launch with --help for a detailed explanation of each argument)

python ./src/swift_scrapper.py --full_bank_info --output_path ../data/final/swifts.jsonl


Project Structure

The project is composed of a main notebook named swift_scraper.py.


This is the project structure followed by this project:



  
├── LICENSE 
├── README.md          <- The top-level README for developers using this project
├── data
│   ├── final          <- Final data and results
│   ├── processed      <- Intermediate datasets
│   └── raw            <- The original, immutable data dump
│
├── docs               <- Documents of interest for this project
│
├── src                <- Source code as Jupyter notebooks and main scripts.
│
├── environment.yml    <- YAML file to create conda environment to run the project
   


Built With