Web サイトから 1 時間ごとに読み取り、特定の文字列を検索する小さなスクリプトを作成しました。この文字列は、計算したい数値です。
「nohup python3 /path/to/script &」でスクリプトを実行すると、しばらくは機能します。数時間後、数日後、または弱い場合でも、スクリプトは "~/nohup" のエラー出力で動作を停止し、float() が 41 行目の文字列を変換できないというエラーが出力されます。
line 41: current_value = float(html_content[temperature_pos_begin:temperature_pos_end])
スクリプト全体: http://pastebin.com/AEY1Kafa