Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
57 views

I want to use Twitter API for my project, but I have faced a problem, I cannot really solve. I also use twython. I Forked the Project from this: https://github.com/EnyanDai/FakeHealth I got the ...
bockmic1's user avatar
0 votes
0 answers
78 views

I can tweet adding one image using Twython like so: twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET) # twitter: upload media gif = open('ex.gif', 'rb') response =...
Martin's user avatar
  • 1,582
0 votes
1 answer
1k views

I simply want to post a tweet from my Raspberry Pi and keep getting a 401 error. -----------------------------------------This is my code----------------------------------------- import sys from ...
rhenley3's user avatar
0 votes
0 answers
114 views

Ok I am making a twitter bot in Python Here is the code - from twython import Twython, TwythonError import requests APP_KEY = "" APP_SECRET = "" twitter = Twython(APP_KEY, ...
Varnith Varma's user avatar
1 vote
1 answer
165 views

I have a code that receives tweets and writes them to csv files. I want to stop this process after a certain amount of time. How can I add a timer to the program. Probably for this you need to use ...
kostya ivanov's user avatar
0 votes
1 answer
84 views

So I am using Twython to get retweeters of a tweet tweet = self.twitter.show_status(id=tweet_id) if tweet.get('retweet_count') > 0: try: retweets = self.twitter.get_retweets(...
Arfath Yahiya's user avatar
-1 votes
1 answer
105 views

I want to download tweets of two users at the same time. So far I' ve downloaded tweets of one user. Here is some code. tweetsL = [] try: user_timeline = twitter.get_user_timeline(screen_name= '...
Αθανάσιος Σουλιώτης's user avatar
0 votes
1 answer
98 views

I've downloaded some tweets with Twython. I want to get/access only the 'name' attribute from the 'user' object dictionary (e.g. {'id': 540179903, 'id_str': '540179903', 'name': 'Makis Voridis' etc. ...
Αθανάσιος Σουλιώτης's user avatar
0 votes
1 answer
46 views

I downloaded the tweets I want but my code is running infinity. The Google Collab environment said that I cannot interrupt the code. How can I stop the code from running without canceling it? Here is ...
Αθανάσιος Σουλιώτης's user avatar
2 votes
1 answer
2k views

I applied for a Twitter Developer account on my personal Twitter account, let's call it @personal for this example. I have another account, which I'll call @bot. My personal account has access to the ...
thesimg's user avatar
  • 338
0 votes
1 answer
59 views

Using the Twython Python library, I discovered that I can send Direct Messages (DM) leveraging the following code: api.send_direct_message(event={'type':'message_create','message_create':{'target':{'...
sc4re's user avatar
  • 191
0 votes
1 answer
76 views

I'm trying to get the most recent 100 tweets from certain Twitter users on my dev account. I have verified that the credentials work because I can use the API for other tasks. However, the code below ...
William Wormell's user avatar
0 votes
0 answers
35 views

I am trying to print all screen_names found on a search result with Twython. Here is my current code #Import the required modules from twython import Twython #Setting the OAuth Consumer_Key = '' ...
user avatar
1 vote
1 answer
365 views

I am scraping the data from tweeter using a hashtag. My code below works perfectly. However, I would like to get 10 000 tweets and save them in the same JSON folder (Or save them in separate folder ...
Alex's user avatar
  • 21
0 votes
1 answer
1k views

I am scraping the data from tweeter using Twython. I could get this done successfully. However, for further data manipulation, I need to save the tweeter data to JSON or any other format that can be ...
Alex's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
22