Pomodoro technique. Basically set a timer to do work for 20 mins (or even 10 minutes), then take a break. Then do it again. Sometimes this can get you over the initial hurdle of getting started. Once you get into the task you may not want to take a break anymore.
A similar trick is if you think of something else to do that's timewasting, like posting on lemmy (lol), then its ok to do it - but only after working for 10 minutes. You can still do those things but prioritize getting something done first.
Another one: go to the library to work. Initially all you have to do is go, not do the task itself. Then you're there, and there's nothing to do except for work. This can turn into card games in the library cafe lol, but then you have to choose a less popular place.