todo.join() waits on a counter, not on an empty queue. Every put() adds one, and every task_done() takes one away. When the count reaches zero, join() returns.
A worker puts a page's links before it calls task_done() for the page. So the count can't reach zero while any page still has work coming.
task_done() sits in finally, so a page that raises still counts down. Leave it out, and join() waits forever.
One None per worker stops the threads
When join() returns, one None per worker tells them to stop, and t.join() waits until they have.
The worker's first line reads inside out. todo.get() waits until the queue holds an item and takes it. := assigns it to url inside the condition. The loop ends when that item is None. The := is only shorthand: while True:, then url = todo.get(), then if url is None: break, does the same.
In the editor, four workers take URLs from jobs until they get None. After the ten jobs, put one None on jobs for each worker, then join every worker, so none is still running at the end.