Add download functionality to search module

Use def with parentheses when there are parameters.<br>Surrounding space missing in default value assignment.<br>Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.