Here's a big fat list of nigerian states and their lgas in json for your projects

Here's a big fat list of nigerian states and their lgas in json for your projects

I'll just cut to the chase here

If you're building a nigerian website that requires you to have "State of origin" and "LGA" select fields, chances are you might have to scrape option values for those fields. I had to do this when i built my last project so i'm making the scraped data public so you can use it in your own application

I've hosted the json file in a repo and wrote steps on how to use it in the repo's readme file. Clone the repo here

Enjoy

PS: If you think this is useful, kindly share to someone else who might be bent down scraping this data themselves

Now if you're curious on how i scraped it here's what i did:

  1. Scraped state names from this blog using SimpleScraper and created objects for each state in an array
  2. Scraped LGA data from each state's page and looped it into the state array
  3. There's no step 3

Till next time

Jeffrey