Levell Tech

Projects

PPC Bot

Back in February, I started a research project using the Tweepy library in Python. Around that time, the leader of the People's Party of Canada (PPC), Maxime Bernier, asked people to follow the accounts that he followed, and retweet their tweets.

That was a big job, so I wrote a Python script to create a list to which others could subscribe. The next task was to isolate PPC-related tweets. This was the genesis of my twitter bot. It listens for PPC-related tweets from the accounts followed by Maxime Bernier.

After a while, I wrote another Python script to generate Top Tweets lists. It generates daily Top Ten and weekly Top 40 lists of the most popular PPC-related tweets. It also served to help PPC supporters find each other and relevant information.

We built a solid community on Twitter, able to dominate most threads and get hashtags trending. This was particularly useful in getting the attention of the debate organizers.

PPC Bot screenshot

Tech Used

  • Python
  • Tweepy
  • Twitter-API
Twitter GitHub GitLab LinkedIn