How can I get a url from Chrome by Python?
I'm trying to use Pywinauto to get the Chrome tab's url like this: (pseudo code) Press F6 to direct url line. Ctrl + C to copy url Get the url from scrapbook Deal with the url by BS4, Requests, selenium and etc. I am done with step 1 and stuck at step 2. Again, I don't know how to deal with step 3. Thus, think the method I figure out is incorrect and not efficient. Can anybody suggest what I should do or give me a better way? Just to summarize all the comments in one answer... pywinauto 0.5.4 is not able to get the URL from Chrome without tricks like TypeKeys and clipboard grabbing. Coming