Fix the script dying when grabbing non-existant resources.
Add unittest for links to Wikipedia.

Note that we are always assuming that links point towards places where we
can aways get things from, which is false.

Additionally, we are constructing incorrect URLs for external sites in the
case of no videos, which is a bug and causes extra (and spurious) network
access.