centos 7 安装 selenium

332  pip install selenium
  333  yum install pip
  334  yum install python-pip
  335  pip
  336  pip install selenium
  337  pip install --upgrade pip
  338  pip install selenium
  339  ./robot.py 2
  340  pwd
  341  ll
  342  wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
  343  yum install -y lsb
  344  yum install -y libXScrnSaver
  345  ll
  346  yum localinstall google-chrome-stable_current_x86_64.rpm
  347  ll
  348  ./robot.py 2
  349  google-chrome --version
  350  cd /usr/local/src/
  351  ll
  352  wget https://cdn.npmmirror.com/binaries/chromedriver/102.0.5005.61/chromedriver_linux64.zip
  353  ll
  354  unzip chromedriver_linux64.zip 
  355  ll
  356  pwd
  357  vi ~/.bash_profile 
  358  source ~/.bash_profile 
  359  history 
  360  cd /www/wwwroot/hzbdata.net/www/


  361  ll
  362  cd ztb_robots/
  363  ll
  364  ./robot.py 2
  365  node -v
  366  yum install nodejs
  367  node -v
  368  node -v\
  369  node -v
  370  openssl -v
  371  openssl version
  372  yum install openssl
  373  ./robot.py 2
  374  pwd
  375  ll
  376  pwd
  377  crontab -l
  378  cat /www/server/cron/5255edd83720a017bf0d7d766d02906f
  379  pwd
  380  ll
  381  cat sql.py 
  382  ll
  383  ./sql.py 
  384  ll
  385  cat close_google_chrome.sh 

  386  python /www/wwwroot/hzbdata.net/www/ztb_robots/sql.py 
  387  ll
  388  cd /usr/local/src/
  389  ll
  390  cp chromedriver /usr/bin/
  391  python /www/wwwroot/hzbdata.net/www/ztb_robots/sql.py 
  392  cd /www/wwwroot/hzbdata.net/www/ztb_robots/
  393  ll
  394  pwd
  395  cat close_google_chrome.sh 
  396  ps -ef | grep google | grep chrome|awk '{print $2}'
  397  pwd
  398  ll
  399  sh close_google_chrome.sh 
  400  ps -ef | grep google | grep chrome|awk '{print $2}'
  401  ll
  402  ps -ef | grep google | grep chrome|awk '{print $2}'
  403  w

  参考资料
  https://blog.csdn.net/qq_36622490/article/details/114918961
  https://www.jianshu.com/p/0893e1d773ef
  https://blog.csdn.net/qq_36622490/article/details/114918133
  https://registry.npmmirror.com/binary.html?path=chromedriver/102.0.5005.61/
  https://blog.csdn.net/ling1998/article/details/123951726

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值