Giter Site home page Giter Site logo

reddit's Introduction

reddit

A collection of reddit bots and utilities, all written by /u/GoldenSights. Many of these are done via /r/botrequests+requestabot, and some are done on a whim.


###Before running any of my bots

Read this.

Do not put multiple programs in the same folder. They use SQL databases to store information and you musn't allow them to mix. You can always edit sql = sqlite3.connect('sql.db') to use a different filename for the database, but folders are nice.

Use descriptive useragents. Include a username by which admins can identify you. Tell what your bot is doing and why. Convince the admins that you aren't wasting their bandwidth. Inadequate useragents may cause your bot to get logged out in the middle of your session, and the program will crash. Abusive useragents can get your bot shadowbanned.

Reddit API rules


###Bot.py

In a lot of my bots, you'll see

import bot
USERAGENT = bot.aG

etc. This is a file in my python library which contains my bot's oauth credentials. I use this system so that I can push this code to git without worrying about my stuff being seen.

To create your own bot.py is very simple. It's just a regular .py file which you save in C:\Python34\Lib. Then you just enter some variables

username = "robot"

password = "12345"

Now, when you import bot, you can type bot.username and get "robot". You can create as many variables as you want, including useragents and multiple account credentials.

reddit's People

Contributors

aaronhall avatar anlsh avatar bboe avatar billywm avatar chizu avatar dahlia avatar damgaard avatar deimos avatar epsy avatar fluxflashor avatar foxx avatar hazimgazov avatar jensechu avatar jknabl avatar julian avatar mdippery avatar nemec avatar paul-nechifor avatar pinkerton avatar rasher avatar renfredxh avatar sente avatar shalecraig avatar shrayasr avatar simongreenhill avatar tailszefox avatar tmelz avatar tomdunn avatar voussoir avatar wiwiweb 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.