greggles / mcc-codes

A public repository of Merchant Category Codes (MCC) in formats easier to read than most places (i.e. not a PDF)
The Unlicense
462 stars 295 forks source link

Another source of CSVs #21

Open jleclanche opened 4 years ago

jleclanche commented 4 years ago

Hi, thanks for your work on this repo!

I recently had to deal with MCCs from Python and decided to publish a python package for iso18245.

I got curious about pulling the data from first-party sources; I also needed range data, not just the list of MCCs, so I worked on generating new CSVs.

I grabbed the official ISO 18245 PDF, as well as the most recent Visa list, the USDA list, and even Stripe Issuing's list. I used Tabula to extract the data, and had to do some extra manual + scripted clean up (especially with Visa's PDF; the rest was pretty clean).

Wanted to share it here in case it's useful for someone:

Specifically, I needed to match cut text descriptions to the original MCCs: image

It's a wonder why this was standardized on 4-digit codes at all if banking APIs are just going to use mangled english descriptions… but whatever. The python library itself exposes all that data. I've attached all the combined MCCs as JSON here if anyone needs them:

mccs.json

greggles commented 4 years ago

This is very cool! I'd be interested to make you a committer on this repo if you'd like to find a good way to merge in your work?

jleclanche commented 4 years ago

Feel free to merge it in! But I'm afraid I'm not interested in being a committer on here, I've spent enough time on it as is :)

If you'd like to open up the repo a bit, I recommend the Code Shelter: https://www.codeshelter.co/