博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
在Python中调用默认浏览器
阅读量:4149 次
发布时间:2019-05-25

本文共 234 字,大约阅读时间需要 1 分钟。

 

在Python中调用默认浏览器

Posted on 15:38:00 by 晓月 and filed under Python

  前面讲了用 Python 模拟浏览器进行登陆、抓取页面然后分析等操作。有的时候,我们还需要把筛选出的页面显示出来,最简单的方法自然是调用系统默认的浏览器。

  直接使用标准库中的 webbrowser 模块,看下面的例子:

    import webbrowser

    webbrowser.open_new_tab('www.163.com')  

转载地址:http://eesti.baihongyu.com/

你可能感兴趣的文章
[LeetCode]Surrounded Regions
查看>>
[LeetCode]Swap Nodes in Pairs
查看>>
[LeetCode]Symmetric Tree
查看>>
[LeetCode]Text Justification
查看>>
[LeetCode]Trapping Rain Water
查看>>
[LeetCode]Triangle
查看>>
[LeetCode]Two Sum
查看>>
[LeetCode]Unique Binary Search Trees
查看>>
[LeetCode]Unique Binary Search Trees II
查看>>
[LeetCode]Unique Paths
查看>>
[LeetCode]Unique Paths II
查看>>
[LeetCode]Valid Number
查看>>
[LeetCode]Valid Palindrome
查看>>
[LeetCode]Valid Parentheses
查看>>
[LeetCode]Valid Sudoku
查看>>
[LeetCode]Validate Binary Search Tree
查看>>
[LeetCode]Wildcard Matching
查看>>
[LeetCode]Word Ladder
查看>>
[LeetCode]Word Ladder II
查看>>
[LeetCode]Word Search
查看>>