def main(): while True: title, img_name = get_news() post_to_instagram(title, img_name) time.sleep(3600) # 1 saatte bir çalışacak