TwitterにPythonからログインして投稿する方法のメモ。 AlmaLinux, Chrom で確認。 Python 3.6.8 Google Chrome 98.0.4758.102, 96.0.4664.110 selenium 3.141.0 起動 from selenium import webdriver from selenium.webdriver.chrome.options import Options from selenium.webdriver.common.keys import Keys import chromedriver_binary import time # seleniumを起動 options=Options() options.add_argument('--headless') options.add_argument('--no-san