Below is a link that looked nice, but I've not tried it yet; however, read the next link below because you may want to modify what's in this first link:
https://www.turbokeu.com/myprojects/acled.htm
Like I said, look at this link too, especially at what Roff said, because he avoids...