search for a data in my browser via script

kelvidpang at f38.n261.z1 kelvidpang at f38.n261.z1
Mon Feb 6 13:28:08 EST 2017


From: kelvidpang at gmail.com

On Monday, 6 February 2017 22:43:17 UTC+8, Meeran Rizvi  wrote:
> Hello guys,
> Here i am writing a script which will open my chrome browser and opens the
URL www.google.com.
> But how to search for a data via script.
> for example i need to search for 'Rose' in google.com via script.
> how to do that?
>
> <python>
> import webbrowser
> url="www.google.com"
> chrome_path = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
%s'
> webbrowser.get(chrome_path)
> webbrowser.open(url)
> </python>


You may try to search for selenium for python, which has chrome driver.. it
works like charm.




More information about the Python-list mailing list