def get_song_urls(song_input):
YOUTUBECLASS = '<STR_LIT>'<EOL>html = requests.get("<STR_LIT>",<EOL>params={'<STR_LIT>': song_input})<EOL>soup = BeautifulSoup(html.text, '<STR_LIT>')<EOL>soup_section = soup.findAll('<STR_LIT:a>', {'<STR_LIT>': YOUTUBECLASS})<EOL>song_urls = ('<STR_LIT>' + i.get('<STR_LIT>')<EOL>for i in soup_section)<EOL>song_titles = (i.get('<STR_LIT:title>') for i in soup_section)<EOL>youtube_list = list(zip(song_urls, song_titles))<EOL>del song_urls<EOL>del song_titles<EOL>return youtube_list<EOL>
Gather all urls, titles for a search query
from youtube