Giter Club home page Giter Club logo

littlesnapper's Introduction

a tool to capture and print snapchat pictures to a connected inkless BERG Little Printer.

BERG Little Printer http://bergcloud.com/littleprinter/

littlesnapper captures unread snapchat images, hosts the image for 45 seconds (or any amount you choose) to allow the little printer to parse and print the image and then deletes it.

littlesnapper's old name was 'whippersnapper'

note: due to the printer being a thermal printer, the images it will print will be black and white.

yu wer expekting culurs rite?

srry.

serious note: littlesnapper won't work anymore because BERG Cloud has shut down.

requirements

to run littlesnapper you would need:

  • php 5.1+

  • php-curl

  • php-gd

  • mcrypt

  • A BERG Little Printer

  • A local, hosted server or vps

(I've tried heroku and i'm working on it in the future.)

how to use

Here is a democast

http://quick.as/7zoi4wg

first of all, install dependencies by typing:

composer install

next, replace the following in the config/config.ini.php

###snapchat config

usr = your snapchat username. eg: Evan

pass = your snapchat password. eg: Ghostface

delete = do you want to delete or keep captured snaps? eg: true

  • In ALL cases this should be true as you do NOT need to keep images on your server.

dither = image dithering options: true = dither, false = threshold

###littleprinter config

api_key = your littleprinter API key.

server_url = your servers root directory that littlesnapper is hosted on.

  • ngrok is awesome to host local servers securely on the web.

time_to_delete = the time you want to delete the image in seconds. eg 20

  • if you type null or a strange value, littlesnapper defaults to 45 seconds.

also, make sure your folder permissions are setup properly.

and now using php in the command-line, type:

php littlesnapper.php

here's a few of mine.

It is possible to use cron jobs on a server for littlesnapper.

(I ran into alot of permissions errors when using the cron job. Sometimes littesnapper will print a blank image.)

to try, use

crontab -e

and enter the path to where php is (/usr/bin/php) & the directory to where littlesnapper is.

just don't turn it into a cron job disaster like mine was.

https://twitter.com/hakobyte/status/399846094852861953/photo/1

future/todo

(in order of precedence)

security

config file.

implement dithering algorithms (for shading)

support for printing multiple snaps.

include more dithering features for configuration.

snapchat stories!

license

MIT

=[],

munchi says thanks, for using this software, knowing that you will do good with it.

credits

littlesnapper was made by @hakobyte

php-snapchat - a fork of the reverse engineered snapchat library by @dstelljes

imagecrop - an image cropping library made by abraham daniel

Team Snapchat

and

BERG Cloud for creating Little Printer!

http://hakob.yt/e/

littlesnapper's People

Contributors

hako avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

littlesnapper's Issues

implement dithering algorithm for snaps

Due to the images being printed only in black and white, the current picture quality of the snaps are slightly inadequate and can sometimes vary, That means there are hardly any shading in the images.

We could either go with floyd-steinberg dithering or bayer, which ever is best.

-hako

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.