GithubHelp home page GithubHelp logo

iherbie's Introduction

iHerbie

iHerbie is a simple bot that pulls relevent tweets from several Twitter accounts and posts the most popular tweet to the Huskers subreddit using the PRAW to interact with Reddit API. iHerbie pulls recent tweets from local newspaper accounts focused on the Nebraska Cornhuskers. It selects the most popular tweet based on favorites and retweets. Once selected, the tweet text is cleaned and the link to the actual content is found. After a post is made to r/Huskers, an email is sent confirming a successful post and the tweet is stored in a sqlite database. If the tweet has already been posted, it is discarded and a failure email is sent.

iherbie's People

Contributors

dodgees avatar

Stargazers

 avatar  avatar

Watchers

 avatar

iherbie's Issues

Refactor methods

Change code for inserting tweets, checking posted tweets, getting twitter api object to use methods. Include main method that uses these methods.

Get full link

Users would like to see links to the original article instead of a link to the tweet.

Insert tweets into database

This step should take information from the tweet and insert it into the iHerbie database. Stored information will include twitter user, tweet text, favorite count, retweet count, created tsp and saved tsp.

Oauth for PRAW

Look into using Oauth for PRAW. Implement if it can be done effectively.

Logging

Add logging to track iHerbie, instead of printing.

Post tweet

Check if tweet has already been posted, post tweet to Reddit and add posted tweet to the database.

Clean up retweets

Create method to remove RT @*:. Look for additional ways to do tweet text cleanup.

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.