When writing browser automation scripts in Python, Playwright's sync API appears to be the most convenient option. However, in a Python 3.9 environment installed via Anaconda, this caused crashes. In ...
v2.0 of the driver has been upgraded to support asynchronous operations from Python code. This is a major boon for Python developers. The previous instance pf the driver was a milestone in that it had ...
ブラウザ自動化のスクリプトをPythonで書くとき、Playwrightのsync APIは一番手軽に見えます。ところがAnaconda経由のPython 3.9環境では、これがクラッシュの原因になりました。今回は、そこで決めた「asyncに統一する」ルールと、サイトの改修で壊れやすいセレクタを設定ファイルに隔離する構成をまとめます。 何が起きたか Playwrightを同期APIで書いて動かすと ...