Skip to content

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

Open
foad-heidari wants to merge 1 commit into
WeAreMahsaAmini:mainfrom
foad-heidari:main
Open

feat(Backend): 🎨 Add sample script to get all user tweets#8
foad-heidari wants to merge 1 commit into
WeAreMahsaAmini:mainfrom
foad-heidari:main

Conversation

@foad-heidari

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

Copy link
Copy Markdown
  • 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

@farnoodma farnoodma left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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