(I\'ve tried looking but all of the other answers seem to be using urllib2)
I\'ve just started trying to use requests, but I\'m still not very clear on how to send o
input:
import requests def googleSearch(query): with requests.session() as c: url = 'https://www.google.co.in' query = {'q': query} urllink = requests.get(url, params=query) print urllink.url googleSearch('Linkin Park')
output:
https://www.google.co.in/?q=Linkin+Park