Skip to content

Conversation

@pawanshekhawat
Copy link

Summary

Instagram removed IGTV and the field total_igtv_videos is no longer returned by the API.
Toutatis currently crashes with:

KeyError: 'total_igtv_videos'

Fix

Replaced the direct access with a safe .get() call:

Before:
infos["total_igtv_videos"]

After:
infos.get("total_igtv_videos", 0)

Additional Notes

  • Tested successfully on Python 3.10
  • Prevents crashes and preserves backward compatibility
  • Tool does not work on Python 3.11+ due to dependency breaks; the README may need compatibility updates.

This PR ensures Toutatis remains functional after Instagram's IGTV removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant