you can only get at airports on the day of departure (you do after flight check-in). In advance of travel you can get at immigration CWattana.
Definitely not difficult, time consuming ?!? At the airport there was a poster at the desk saying it'll take a max of 20 min or so (for me last time <10min). If you're flying at a peak time maybe allow upto 40min !?!