MichaelCurrin / twitterverse

Store and report on Twitter conversations, from tweets to trending topics 🌍 🐦 🐍
https://michaelcurrin.github.io/twitterverse/
MIT License
13 stars 1 forks source link

Add init to classes #127

Open MichaelCurrin opened 4 years ago

MichaelCurrin commented 4 years ago

Use tweepy specific fields.

This could work for data class or tweepy object which appear the same. Otherwise named tuple or dict

This will be tied to tweepy though. And parent will have to be added still using object or foreign key ID.

Consider making init just a helper method which is focused on getting tweepy object. Can be a separate function if needed for high level multi class but method will keep it together well.

I have this logic already it's just not in models.