Skip to content

Commit

Permalink
fix: search_tweets
Browse files Browse the repository at this point in the history
  • Loading branch information
dhohirpradana committed Oct 19, 2023
1 parent 5f68078 commit d974b98
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,19 @@ def updateName():
name = calendar_emoticon + " " + d_indonesia
api.update_profile(name=name)


def updateStatus():
text = ""
api.update_status(status=text)



def getTweetAndRetweet():
# Search for tweets (you can customize the query)
search_query = "Teknologi"
tweet_count = 10 # Number of tweets to retrieve

tweets = api.search(q=search_query, count=tweet_count)
tweets = api.search_tweets(q=search_query, kwargs={"count": tweet_count})

# Generate a random number between 0 and 9 (inclusive)
random_number = random.randint(0, 9)

Expand Down Expand Up @@ -87,4 +89,4 @@ def updateBanner():
if __name__ == "__main__":
getTweetAndRetweet()
# updateName()
#updateBanner()
# updateBanner()

0 comments on commit d974b98

Please sign in to comment.