> For the complete documentation index, see [llms.txt](https://lifelong-learning.gitbook.io/pythonjourney/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lifelong-learning.gitbook.io/pythonjourney/open-webpage-via-python/search-with-googlemap.md).

# Search with Googlemap

The following code can search a location through code, by typing in Terminal `python mapIt.py + address`, or "win + R" and type in `mapIt.py + address`, or copy lots addresses and execute the program. For more details, "Automate Boring Stuff with Python".\ <br>

```
#! python3
import webbrowser
new=2
url="http://www.google.com.hk"
#url="http://www.youtube.com"
webbrowser.open(url,new=new)
```

Resource:

* [official doc](https://docs.python.org/3.6/library/webbrowser.html)
* [Youtube vedio](https://www.youtube.com/watch?v=jU3P7qz3ZrM)

## Code

[Github Code Link 1](https://github.com/ShakalakaB/Python_journey_code/blob/master/open-webpage-via-python/weather.py) [Github Code Link 2](https://github.com/ShakalakaB/Python_journey_code/blob/master/open-webpage-via-python/web_python.py)
