This repository contains data for the counties in Kenya(i.e counties ,their respective headquarters and sub-counties), scraped using Golang and Colly.
The data includes the following fields for each county:
- Code: County code
- County: County name
- Headquarters: County headquarters
- SubCounties: Sub-counties within the county
The data was scraped from Afro Blog - List of Counties.
You can download the JSON file containing the scraped data from the repository:
The scraping script (main.go
) uses the Golang library Colly to fetch and parse HTML data from the website.
To run the script, you need:
- Golang installed on your machine
- Dependencies managed using Go modules (
go mod tidy
)
- Clone the repository:
git clone https://github.com/DevitoDbug/kenyaCountiesAndSubCountiesData.git