I have the following program, in which I am trying to pass a list of elements to consecutive Google searches:
search_terms = ['Telejob (ETH)', 'Luisa da Silva','The CERN Recruitment Services']
for el in search_terms:
webpage = 'http://google.com/search?q='+el)
print('xxxxxxxxxxxxxxxxxxx')
print(webpage)
Unfortunately my program is not taking ALL the words in each list item, but taking only the first one, giving me this output:
http://google.com/search?q=Telejob (ETH)
xxxxxxxxxxxxxxxxxxx
http://google.com/search?q=Luisa da Silva
xxxxxxxxxxxxxxxxxxx
http://google.com/search?q=The CERN Recruitment Services
xxxxxxxxxxxxxxxxxxx
http://google.com/search?q=The Swiss National Science Foundation
Altough you can see the whole item with every word being added to the search above, when I verify the link, it is going concatenating as element ONLY the first word of each item, as such:
http://google.com/search?q=Telejob
xxxxxxxxxxxxxxxxxxx
http://google.com/search?q=Luisa
xxxxxxxxxxxxxxxxxxx
http://google.com/search?q=The
xxxxxxxxxxxxxxxxxxx
http://google.com/search?q=The
What am I doing wrong and what's the solution to concatenate ALL the words in each list item to the google search?
Thank you