Mechanize: too many values to unpack (expected 2)
I have just found out a way around to this issue even if the above issue still exists. I am posting this only to let the readers know that we can do it this way too:
Instead of using the mechanize
package, we can use the webbrowser
package and write the following python code in the Example.py:
import webbrowser
import sys
#This is an upgrade suggested by @Jean-François Fabre
listOfSites = sys.argv[1:]
for i in listOfSites:
webbrowser.open_new_tab(i)
Then we can run this python code by executing the following command in the terminal/command prompt:
python Example.py https://www.google.com https://www.bing.com
This command mentioned above in the example will open two sites at a time. One is Google and the other is Bing