code now uses search term input from terminal in url