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