alunix / swift_codes

SWIFT codes


This scraper used to pull SWIFT bank codes + bank details from www.swiftcodesinfo.com but this website was taken offline.

Forked from ScraperWiki

Contributors alunix

Last run failed with status code 1.

Console output of last run

Getting countries Traceback (most recent call last): File "/repo/scraper.py", line 114, in <module> main() File "/repo/scraper.py", line 108, in main swift_codes() File "/repo/scraper.py", line 98, in swift_codes raw = GET(SWIFT_URL) File "/repo/scraper.py", line 51, in GET res = GET(url=url, headers=headers, attempts_made=attempts_made+1) File "/repo/scraper.py", line 51, in GET res = GET(url=url, headers=headers, attempts_made=attempts_made+1) File "/repo/scraper.py", line 51, in GET res = GET(url=url, headers=headers, attempts_made=attempts_made+1) File "/repo/scraper.py", line 51, in GET res = GET(url=url, headers=headers, attempts_made=attempts_made+1) File "/repo/scraper.py", line 51, in GET res = GET(url=url, headers=headers, attempts_made=attempts_made+1) File "/repo/scraper.py", line 51, in GET res = GET(url=url, headers=headers, attempts_made=attempts_made+1) File "/repo/scraper.py", line 48, in GET res = urlopen(req) File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 406, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 444, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 404: Not Found

Data

Downloaded 1 time by MikeRalphson

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (87 KB) Use the API

rows 10 / 311

country_name name code_bank code_branch source address code_country swift_code code_location
AFGHANISTAN
BANKE MELLIE AFGHAN
BMAF
XXX
JADA IBN SINA KABUL AFGHANISTAN
AF
BMAFAFKA
KA
AFGHANISTAN
DA AFGHANISTAN BANK
AFGB
XXX
IBNE SINA WAT KABUL AFGHANISTAN
AF
AFGBAFKA
KA
AFGHANISTAN
STANDARD CHARTERED BANK
SCBL
XXX
STREET 10 WAZEER AKBAR KHAN AREA KABUL AFGHANISTAN
AF
SCBLAFKA
KA
AFGHANISTAN
AFGHANISTAN INTERNATIONAL BANK
AFIB
XXX
E AND F STREET BEHIND LYCEE ALMANI KABUL AFGHANISTAN
AF
AFIBAFKA
KA
AFGHANISTAN
ARIAN BANK
AFAB
XXX
HOUSE NO.2 ST.13 WAZIR AKBAR KHAN KABUL AFGHANISTAN
AF
AFABAFKA
KA
AFGHANISTAN
AFGAN UNITED BANK
AFGU
XXX
SHAR-E-NAW KABUL AFGHANISTAN
AF
AFGUAFKA
KA
AFGHANISTAN
AZIZI BANK
AZBA
XXX
AZIZI BANK NEXT TO MINISTRY OF FOREIGN AFFAIRS MALIK ASGHAR SQUARE KABUL AFGHANISTAN
AF
AZBAAFKA
KA
AFGHANISTAN
BANK ALFALAH LIMITED (AFGHANISTAN - KABUL BRANCH)
ALFH
XXX
BANK ALFALAH KABUL BRANCH HOUSE 410 CHAHRAHI-E-SADARAT KABUL AFGHANISTAN
AF
ALFHAFKA
KA
AFGHANISTAN
BANK ALFALAH LIMITED (AFGHANISTAN - KABUL BRANCH)
ALFH
803
(AFGHANISTAN - HERAT BRANCH) (AFGHANISTAN - HERAT BRANCH) CHAMBER OF COMMERCE AND INDUSTRIES BUILDING GROUNG FLOOR BLOOD BANK STREET SHAHRE NAU HERAT HERAT AFGHANISTAN
AF
ALFHAFKA803
KA
AFGHANISTAN
BRAC AFGHANISTAN BANK
BABA
XXX
CHARAI TORABAZ KHAN SHAR-E-NAW ZARGHONA MIDAN KABUL AFGHANISTAN
AF
BABAAFKA
KA

Statistics

Total run time: 2 minutes

Total cpu time used: less than 5 seconds

Total disk space used: 109 KB

History

  • Manually ran revision c8a6d1a5 and failed .
    nothing changed in the database
  • Forked from ScraperWiki

Scraper code

Python

swift_codes / scraper.py