美文网首页
Python开发笔记(1)

Python开发笔记(1)

作者: onefiter | 来源:发表于2016-03-04 17:23 被阅读15次

    首先选择了BeautifulSoup作为网页解析器,需要安装一些工具来安装Beautiful Soup,参考文档Beautiful Soup文档

    一、安装pip

    • 首先,安装wget
      brew install wget

    • 其次, 获取pip安装脚本
      wget https://bootstrap.pypa.io/get-pip.py

    • 最后,开始安装beautifulsoup了
      sudo pip install beautifulsoup4

      测试beautifulsoup的路径

    其中,beautifulsoup.py中的内容为

    import bs4
    print bs4

    相关文章

      网友评论

          本文标题:Python开发笔记(1)

          本文链接:https://www.haomeiwen.com/subject/jmpokttx.html