Starting from a base script like:
import webbrowser url = 'http://www.google.com' webbrowser.open_new_tab(url)
(How can I call the print function to be opened in another terminal?)
What happened? I simply opened google.com but now, I would like to get in the same code the possibility to print out the pages opened in the browser as a normal browsing activity would going on.
I explain better myself script.py I get google.com --- at the same time would be great opening a terminal and printing the URL, and even opening a new tab in terminal would happen : tab0: google.com tab1---yahoo.com, I close tab0 and prints--tab0 closed.
Reference: Urllib2?? something help https://askubuntu.com/questions/338294/output-url-of-open-firefox-tabs-in-terminal