ftnext / connpass-ops-playbook Goto Github PK
View Code? Open in Web Editor NEWAutomate operations on connpass (https://connpass.com/ ) with Helium
License: MIT License
Automate operations on connpass (https://connpass.com/ ) with Helium
License: MIT License
start_firefoxした後のkill_browserの呼び忘れをなくしたい。
コンテキストマネージャーなら例外が送出されてもkill_browserを呼べる認識
命名案 download_participants
GitHub Actionsでテストコードを実行する
https://docs.github.com/ja/actions/publishing-packages/publishing-docker-images をまず参照。
それぞれのアクションのリポジトリが最新っぽいので読み替えていく
>>> from helium import *
>>> start_chrome()
Traceback (most recent call last):
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 72, in start
self.process = subprocess.Popen(cmd, env=self.env,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'chromedriver'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/.../venv/lib/python3.8/site-packages/helium/_impl/__init__.py", line 102, in _start_chrome_driver
result = Chrome(options=chrome_options)
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/common/service.py", line 81, in start
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/.../venv/lib/python3.8/site-packages/helium/__init__.py", line 63, in start_chrome
return _get_api_impl().start_chrome_impl(url, headless, options)
File "/.../venv/lib/python3.8/site-packages/helium/_impl/__init__.py", line 97, in start_chrome_impl
chrome_driver = self._start_chrome_driver(headless, options)
File "/.../venv/lib/python3.8/site-packages/helium/_impl/__init__.py", line 106, in _start_chrome_driver
result = Chrome(options=chrome_options, executable_path=driver_path)
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 76, in __init__
RemoteWebDriver.__init__(
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/.../venv/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 89
Current browser version is 92.0.4515.159 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
他のライブラリを参考に、現在引数有無で分かれているデコレータを統合する
PyCon JP 2021で運用して思った。
どこで落ちたかもっとわかりやすくしたい
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.