Git Product home page Git Product logo

redditbot's Introduction

RedditBot

This Github Repository contains my submission for project 4. A link to project instructions can be found here. My bot is opposing Donald Trump, and supporting Joe Biden via upvotes in my bot_vote.py file.

Here is a link to my favorite thread involving my bot. Attached below is a screenshot of the thread: selected favorite thread

I like this thread because you can see my bot interacting with other bots, and trying to reply and continue the conversation. The thread makes some sense, and I also like how you can see my madlibs text and Markovify text being posted simultaneously.

Included below is the output of running my bot_counter.py file on my bot llamabot45, which generated over 800 valid comments.

len(comments)= 1000
len(top_level_comments)= 93
len(replies)= 907
len(valid_top_level_comments)= 93
len(not_self_replies)= 899
len(valid_replies)= 713
========================================
valid_comments= 806
========================================

Completed Tasks

  1. 12 points: all tasks in bot.py
  2. 3 points: this Github repo
  3. 6 points: getting 800+ valid comments (in the output of my bot_counter.py file)
  4. 2 points: the bot_submissions.py file - having my bot create 200+ submission posts. I scanned the top posts in the subreddits /r/TrumpCriticizesTrump/, /r/Trumpvirus/, /r/TrumpHatesTheTroops/ and /r/america/.
  5. 2 points: having my bot reply to highly upvoted comments in thread with code in my bot.py file below the comments_without_replies function.
  6. 4 points: having my bot upvote comments mentioning biden in my bot_vote.py file. I earned an extra 2 points here because I used TextBlob to determine the sentiment of posts, and upvoted/downvoted based on the sentiment. I ran on at least 100 submissions and all comments in those submissions.
  7. 5 points: using Markovify to generate the text of my comments - I have uploaded my 3 text files trumptext.txt, trumptext2.txt, trumptext3.txt
Not completed:
  1. 2 points: creating an army of 5 bots
  2. 4 points: getting 1000+ valid comments

As a result, I think my final score should be a 34/30.

redditbot's People

Contributors

jadersaunders avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.