Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Programming Project
Description:
Twitter is a social media platform through which users can post short messages that everyone
calls "tweets", but which the developers of Twitter insist are called "statuses". Initially, the
length of tweets was restricted to 140 characters, but the limit was recently doubled to 280
characters.
Users can engage with each other and gain access to each other's status updates by following
each other. When you log into Twitter you are presented with your home timeline, which is a
display of all the tweets sent by you and the other user's that you follow, typically ordered from
most recent to least recent.
Twitter engagement and interaction takes many forms. Some users post frequently while others
post seldom or never. Some users post the everyday minutiae of their lives. Others engage in
extended political discussions. Politicians, journalists, academics, celebrities, and professionals
of many other types make use of Twitter to pursue their various interests. The medium has
shown remarkable versatility given the strict limits on the length of status updates.
Since early on in its existence, Twitter has also been home to automated participants, Twitterbots
–programs that read and post status updates to Twitter. These algorithmic users vary quite a bit
in their overall sophistication. Dr. Graham discussed several examples during her lecture on
Wednesday . I follow at least two movie related bots—one that posts the script of
the 1995 movie Hackers one line at a time, and another that posts lines from Kurt Russel's
character Jack Burton from the movie Big Trouble in Little China. However, their behavior can
be much more interesting and complex than this.
Here are some lists of popular and well-regarded Twitterbots.
Twitterbots are a kind of public performance, and they are often an interactive form of public
performance in which the bot engages with the status updates posted by other users in
interesting, or significant, or amusing, or beautiful ways.
For this assignment you will build a Twitterbot using Python and the Tweepy library for
accessing Twitter's Application Programming Interface. I have simplified the interface to make
it easier for you all to use and to restrict the operations you can take. Your real task is to think
about an interesting way to have your bot perform on Twitter and implement that in
mytwtterbot.py.
Directions:
1. Create a new account on Twitter.
-Please set your username, using your student ID number like this: IAE101studentid
-For example, IAE101105289916
-This should ensure that each student has a unique account name for their project twitter
account that fits the 15-character limit twitter imposes on usernames. -Please use your stonybrook.edu email address when you register the account.
-Share your username with the instructors.
-I have created a Google sheet for you to enter this information.
-Also, follow the IAE101_ckane and IAE101_egraham accounts from your new
project account.
2. Download the Tweepy library using pip.
-Mac: python3 -m pip install tweepy --user
-Windows: py -3 -m pip install tweepy --user
-Please try to install Tweepy right away so that any problems can be resolved as early as
possible in this assignment.
3. Download the files simple_twit.py and mytwitterbot.py from Blackboard.
-simple_twit.py is the interface I have written to simplify and restrict the way you can use
the Tweepy library to access Twitter.
-mytwitterbot.py is the file in which you will implement your Twitterbot. It is already
prepared for you to start making calls to Twitter's API.
-Make sure that simple_twit.py and mytwitterbot.py are always in the same folder on
your computer.