如下所示:
import webbrowser
import codecs
import time
with open(test.txt) as fp:
for ebayno in fp:
url = 'http://ebay.com/itm/'+ebayno.strip()
time.sleep(1) #打开间隔时间
webbrowser.open(url) #打开网页
以上这篇python 自动批量打开网页的示例就是小编分享给大家的全部内容了,希望能给大家一个
例子
此链接将带您到amazon.ca:
此链接将带您到ebay.com:
指示
将此项目克隆到您自己的Github帐户
在Github Pages上托管
如何添加自己的网址
像这样编辑index.html:
{
0: "default/fallback URL", <- if there is no ID, the ID is 0, or the ID isn't listed below
ID : "URL",
ID : "URL",
ID : "URL",