Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Backend): 🎨 Add sample script to get all user tweets #8

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

foad-heidari
Copy link

@foad-heidari foad-heidari commented Sep 29, 2022

  • Write a sample script to get all user tweets which has the hashtags we want

TODO:

  • We need to have a list of usernames.
  • Save information to the DB

@foad-heidari foad-heidari changed the title feat(Backend): 🎨 Add sample script to get all user tweets with our ha… feat(Backend): 🎨 Add sample script to get all user tweets Sep 29, 2022
Copy link
Member

@farnoodma farnoodma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @foad-heidari, hope you are fine.

I believe we can have a better and easier approach, Twitter supports search API that you can pass the author ID and search through their tweets. Now, in CelebrityWall we can do this in real-time, which means each time you open the profile of a celebrity, we call Twitter and get the latest results right away, even an Iframe would work. This way we won't need any DB. Even if we want to make it better performance-wise, we can just cache our requests to Twitter. What do you think?

On another note, I'm not sure if this feature is required or not, because we save the referenced tweet that shows the celebrity's status, so we have the content. If the celebrity has not yet reacted to the incident, then there won't be any need to show any tweet. CC @firiz

@foad-heidari
Copy link
Author

search API

Hey @farnoodma

I did try it out, but i need to verify mi account before can access twitter Search API.

if i ma wrong please let me know, the i can change the code

@farnoodma
Copy link
Member

@foad-heidari we do have a Twitter bot, so we can use it for production, for development purposes, I believe you can join Twitter developers and verify your phone number. If you are in Iran, I recommend asking someone to provide you with one.

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.

3 participants