Git Product home page Git Product logo

chrome_auto_download's Introduction

chrome_auto_download

python3

Windows运行前配置

pip install requests
pip install requests[socks]
pip install requests[security]
pip install beautifulsoup4
pip install selenium

Linux运行前配置

pip install requests
pip install requests[socks]
pip install requests[security]
pip install beautifulsoup4
pip install selenium
chmod 755 phantomjs
ln phantomjs /bin/

还需要安装phantomjs的所需库,phantomjs官网说明如下

Note: For this static build, the binary is self-contained.
There is no requirement to install Qt, WebKit, or any other libraries.
It however still relies on Fontconfig (the package fontconfig or libfontconfig, depending on the distribution).
The system must have GLIBCXX_3.4.9 and GLIBC_2.7.

支持其他系统的phantomjs版本下载

http://phantomjs.org/download.html

使用说明

from chrome_download import chrome_download
chrome=chrome_download()

#设置代理,可选项
chrome.set_proxy('socks5://127.0.0.1:1080')
chrome.test_proxy()

#下载路径
chrome.chrome_download_dir=r'download'

#chrome版本,目前支持的版本['win','win64','mac']
chrome.chrome_os='win64'

#检查新版本,并下载
chrome.check_download()

windows版chrome建议检查一下数字签名是否正常后再安装
mac和linux我不知道咋检查数字签名

chrome_auto_download's People

Contributors

aliencn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.