I have a python script that connects to my database and updates it with a file that i specify. But i keep getting a syntax error on line 5 and for the life of me i can not figure out what it is. If someone could pointit out and how to fix it i would b so greatfull.
import request
url = self._resolve_url('http://website.com/mail/subscriber_upload/index')
files = {'file': ('filename', open(home/hatterx/Desktop/Bronto_Files, 'rb'))}
data = {'source': FACTS Daily Import, 'site_id': xxxxx, 'user_id': xxxxx, 'key': xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, 'format': csv, 'action': add, 'listname': TEST List For API Inegration}
headers = {'content-type': 'multipart/form-data'}
res = requests.post(url, files=files, data=data, headers=headers)
return res.json