I am struggling to find a way to input multiple texts in Google Translate API. My setup includes the following things.
- Using
urllib.request.build_opener(Python3) - Google Translate API https://translation.googleapis.com/language/translate/v2
- I know that we can pass multiple parameters (Multiple "q"), but I don't know how to do it with Python.

- I referred Google Translate documents. I found this.

My Question : How to add multiple texts to the input. ? Because the following code is not making any sense to me.
data = {'q':'cat', 'q':'dog','source':source,'target':target,'format':'html'}
This is my code.
data = {'q':'This is Text1', 'q':'This is Text2', 'q':'This is Text3', source':source,'target':target,'format':'html'}
_req = urllib.request.Request("https://translation.googleapis.com/language/translate/v2?key="+API_KEY)
_req.add_header('Content-length', len(data))
_req.data = urllib.parse.urlencode(data).encode("utf-8")
response = Connector._get(_req,_session)
Connector._get() is in some other file and it internally calls urllib.request.build_opener with data.
Thanks!
{'q':strings, 'source':source,'target':target,'format':'html'}wherestringsis a list.['my text', 'second text']