I have a database with addresses and I would like to run a script to scrape the lat lon info from Google Maps and input it into the database.
I would like to call a site by inputing the address like this: http://maps.google.com/maps?q=1600+Amphitheatre+Parkway+Mountain+View+CA+94043
where eveything before the q= is static and everything after is generated by script.
When you click on the address, this is returned: https://www.google.com/maps/place/1600+Amphitheatre+Pkwy,+Mountain+View,+CA+94043/@37.4224879,-122.08422,17z/data=!3m1!4b1!4m2!3m1!1s0x808fba027820e5d9:0x60a90600ff6e7e6e
How do I A)program Python to visit the first website, then save the returned site to a variable, and B) pull the two numbers after the @ into 2 separate variables?