Code Monkey home page Code Monkey logo

selenium_skype's Introduction

Selenium_skype

headless來關閉瀏覽器的方式執行程式

    chrome_options = Options()
    chrome_options.add_argument('--headless')
    chrome_options.add_argument('--no-sandbox')
    chrome_options.add_argument('--disable-gpu')
    chrome_options.add_argument('--disable-dev-shm-usage')

docker 執行

$ git clone https://github.com/jackey525/Selenium_skype.git
$ cd Selenium_skype
$ docker run -it -v $(pwd):/usr/workspace joyzoursky/python-chromedriver:3.6-alpine3.7-selenium sh
$ cd /usr/workspace
$ pip3 install requests
$ python3 skype.py -u 帳號 -p 密碼

指令

python3 skype.py -u 帳號 -p 密碼

功能

跑 chrome 模擬操作 搜尋群組 傳送訊息

Requirements

Basic requirements (for Mac):

  1. Homebrew

  2. Python

    $ brew install python
    
  3. Chromedriver

    $ brew install chromedriver
    

ubuntu Setup

$ pip3 install selenium
$ pip3 install requests
如果 機器本身沒有 chrome ,請安裝google-chrome

$ sudo apt update

$ sudo apt install google-chrome-stable
機器本身已經安裝 chrome
請查詢 chrome 版本

進入此頁面選擇下載Chromedriver: 
http://chromedriver.storage.googleapis.com/index.html

下載並安裝

$ wget http://chromedriver.storage.googleapis.com/83.0.4103.14/chromedriver_linux64.zip
$ unzip chromedriver_linux64.zip
$ chmod +x chromedriver
$ sudo mv chromedriver /usr/bin/

Test run

$ git clone https://github.com/jackey525/Selenium_skype.git
$ cd Selenium_skype
$ python3 skype.py -u 帳號 -p 密碼

selenium_skype's People

Contributors

jackey525 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.