Giter Site home page Giter Site logo

pixelplacer's Introduction

pixelplacer

Reddit Place (2022) automation. Uses multiple reddit accounts to draw an image on reddit place 2022.

Installation and setup

  • All major versions of Python 3 should work(untested). Don't use Python 2. It's 2022 as of this commit, why would you still do that?
  • Create a virtualenv and install the requirements in requirements.txt.
  • For each reddit account you want to use, create a reddit OAuth2 app at https://www.reddit.com/prefs/apps. More instructions at https://github.com/reddit-archive/reddit/wiki/OAuth2
  • Write down the credentials of the reddit accounts you want to use in a csv file in this format, one account per line:
username,password,oauth_app_id,oauth_secret
  • Get an image for the bot to draw. Common formats like JPG and PNG will work. More exotic formats are untested, refer to the docs for the Pillow python package for info. No vector graphics, probably. The image will be drawn pixel by pixel, by approximating colors to the nearest one in Place's limited palette.

Usage

Having activated the virtualenv, run:

python pixel_placer.py CREDENTIALS_FILE_PATH IMAGE_PATH TOP_LEFT_PIXEL_X TOP_LEFT_PIXEL_Y

Caveats

I make no promises reagrding whether this is compatible with the reddit ToS. Use at your own risk.

This is still random junk hacked together. No guarantees that it will be stable.

square.png is a small 4x4 pixel test pattern. 5x5.png is a 5x5 test pattern.

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.