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.
urllib2 と ElementTree を使用して XML ファイルの新しいエントリを監視し、Pushover を使用して新しいエントリが検出されるたびにプッシュ通知を送信しています。エントリは、XML ファイルに 30 分から 4 時間存在します。スクリプトは 5 分ごとに実行されます。5 分ごとに同じエントリではなく、新しいエントリのみをスクリプトに警告させる最善の方法は何ですか?