Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

twitterのUI変更に伴うtwitter_card_invalidator.pyの修正 #7112

@osaguild

Description

@osaguild

起こっている問題 / The Problem

  • twitter_card_invalidator.py を実行するとエラーになります。
  • 原因はtwitterログイン画面のUI変更にseleniumが対応していないため。

スクリーンショット / Screenshot

image

期待する見せ方・挙動 / Expected Behavior

  • 以下を変更してogp用のscreenshotを取得できるようにする
    • driver.get()で取得しているurlを変更する。(別urlにリダイレクトしているため)
    • driver.find_element_by_css_selector()をUI変更後のdomに合わせて変更する。(selectorがdomを取得できていないため)

起こっている問題の再現手段 / Steps to Reproduce

  1. twitter_card_invalidator.pyを実行
  2. エラーになる

動作環境・ブラウザ / Environment

  • macOS
  • Chrome

Metadata

Metadata

Assignees

Labels

bugバグ。本来あるべき動作をしていないものhelp-wanted特に助けを必要としているもの

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions