I have not been able to figure this out this afternoon so I decided to ask. I am trying to generate some html code with a reference to Google Maps. My output file is a .csv and my delimeter is ;
Python keeps breaking up the Google Maps url line and putting it in another column. Here is the url string that needs to keep the raw &
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Phoenix+AZ&ie=UTF8&z=12&t=m&iwloc=near&output=embed
I need to preserve the amp;
in that url line. I've tried several different codes but nothing has worked. Here is where the code is at in my script.
'<iframe width="425" scrolling="no" height="350" frameborder="0" src="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=' + line.split(",")[0]+"" + ' ' + line.split(",")[1]+"" + '&ie=UTF8&z=12&t=m&iwloc=near&output=embed" marginwidth="0" marginheight="0"></iframe>'