<s> """<STR_LIT>""" <EOL> import os <EOL> import storytracker <EOL> from PIL import Image <EOL> from pprint import pprint <EOL> from datetime import datetime <EOL> from storytracker import images2gif <EOL> urlset = storytracker . ArchivedURLSet ( [ <EOL> storytracker . ArchivedURL ( <EOL> '<STR_LIT>' , <EOL> datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> , <NUM_LIT:0> ) , <EOL> open ( "<STR_LIT>" , "<STR_LIT:rb>" ) . read ( ) <EOL> ) , <EOL> storytracker . ArchivedURL ( <EOL> '<STR_LIT>' , <EOL> datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:0> , <NUM_LIT:0> ) , <EOL> open ( "<STR_LIT>" , "<STR_LIT:rb>" ) . read ( ) <EOL> ) , <EOL> storytracker . ArchivedURL ( <EOL> '<STR_LIT>' , <EOL> datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:0> , <NUM_LIT:0> ) , <EOL> open ( "<STR_LIT>" , "<STR_LIT:rb>" ) . read ( ) <EOL> ) , <EOL> storytracker . ArchivedURL ( <EOL> '<STR_LIT>' , <EOL> datetime ( <NUM_LIT> , <NUM_LIT:1> , <NUM_LIT:1> , <NUM_LIT:3> , <NUM_LIT:0> , <NUM_LIT:0> ) , <EOL> open ( "<STR_LIT>" , "<STR_LIT:rb>" ) . read ( ) <EOL> ) , <EOL> ] ) <EOL> urlset . analyze ( ) <EOL> obj = storytracker . archive ( "<STR_LIT>" ) <EOL> illo_path = obj . write_illustration_to_directory ( "<STR_LIT>" ) <EOL> overlay_path = obj . write_overlay_to_directory ( "<STR_LIT>" ) <EOL> os . rename ( illo_path , "<STR_LIT>" ) <EOL> os . rename ( overlay_path , "<STR_LIT>" ) <EOL> urlset2 = storytracker . ArchivedURLSet ( [ <EOL> storytracker . open_wayback_machine_url ( "<STR_LIT>" ) , <EOL> storytracker . open_wayback_machine_url ( "<STR_LIT>" ) , <EOL> storytracker . open_wayback_machine_url ( "<STR_LIT>" ) , <EOL> ] ) <EOL> urlset2 [ <NUM_LIT:0> ] . write_overlay_to_directory ( "<STR_LIT>" ) <EOL> gif_path = urlset2 . write_href_overlay_animation_to_directory ( <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> ) <EOL> os . rename ( gif_path , "<STR_LIT>" ) <EOL> urlset [ <NUM_LIT:0> ] . write_analysis_report_to_directory ( "<STR_LIT>" ) <EOL> urlset . write_analysis_report_to_directory ( "<STR_LIT>" ) <EOL> img_list = [ <EOL> Image . open ( "<STR_LIT>" ) , <EOL> Image . open ( "<STR_LIT>" ) , <EOL> Image . open ( "<STR_LIT>" ) , <EOL> ] <EOL> crop_list = [ ] <EOL> for img in img_list : <EOL> crop_list . append ( img . crop ( ( <NUM_LIT:0> , <NUM_LIT:0> , img . size [ <NUM_LIT:0> ] , <NUM_LIT> ) ) ) <EOL> crop_list = storytracker . ArchivedURLSet ( [ ] ) . fit_image_list ( crop_list ) <EOL> images2gif . writeGif ( <EOL> "<STR_LIT>" , <EOL> crop_list , <EOL> duration = <NUM_LIT:1> <EOL> ) </s>
