Why recreate the wheel?
Simply go to the site, then click Map Overlay
and you should be able to click on a country and see a heatmap - You can copy and paste that. For example
If you need to actually generate your own from a whole set of data, I am not aware of any good tools to let you do it.