Skip to content
Advertisement

Tag: twitter

I made a Twitter bot that automatically tweets Direct Messages:

I recently started to learn python, i had 0 knowledge on pyhton, and in the last few weeks i’ve been studying python and the twitter api. I decided to work on a simple twitter bot, that automatically posts whatever people send on my direct messages, and i maneged to do so. Here’s my code: The code works, but not 100%,

tweepy is not giving me the last tweet

Im trying to get the last tweet froom a twitter account using tweepy in python. I know there are a few similiar answers for example this one Get the last tweet with tweepy However the issue that I have is that i dont get the last tweet from a persons timeline but the second last tweet. Im using this code

Remove unicode encoded emojis from Twitter tweet

For a data science project I am tasked with the cleanup of our twitter data. The tweets contain unicode encoded emojis (and other stuff) in the form of ud83dudcf8 (camera emoji) or ud83cuddebud83cuddf7 (french flag) for example. I am using the python-package “re” and so far I was successful in removing “simple” unicodes like u201c (double quotation mark) with something

Reply to Tweet with Tweepy – Python

I can’t seem to get tweepy to work with replying to a specific tweet: The api says it takes optional parameters and in_reply_to_status_id is the first, but it seems to be ignoring it altogether. This script will post an updated status, but it does not link it as a reply to the tweetId that I’m passing. API for reference: http://code.google.com/p/tweepy/wiki/APIReference#update_status

Advertisement