If you still want more generalization of xpath and do not want to use that translate function, you can use itertools.product and generate all variant of the string download as node text-attribute as below.
If you still want more generalization of xpath and do not want to use that translate function, you can use itertools.product and generate all variant of the string download as node text-attribute as below.