Add download functionality to search module

Use def with parentheses when there are parameters.