Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ダウンロード前/後にPythonでセレンを使用してファイルのファイル名を変更することは可能ですか? os モジュールを使用したくありません。ありがとう!たとえば、私のファイルが にダウンロードされていてC:\foo\bar、その名前がfoo.csvである場合、それを に変更できますかbar.csv?
C:\foo\bar
foo.csv
bar.csv
いいえ、これは Selenium ライブラリでは不可能です。
ファイルの名前を変更する通常の Python メソッドを使用します。