An open API service indexing awesome lists of open source software.

https://github.com/hako/littlesnapper

:ghost: :fax: A Snapchat printer. Print snapchat images to a BERG Little Printer.
https://github.com/hako/littlesnapper

berg berg-cloud php printer snapchat snapchat-printer

Last synced: 6 months ago
JSON representation

:ghost: :fax: A Snapchat printer. Print snapchat images to a BERG Little Printer.

Awesome Lists containing this project

README

          







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

BERG Little Printer

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](https://ngrok.com/) 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.

![](http://www.hakobaito.co.uk/content/687474703a2f2f7331362e706f7374696d672e6f72672f7475726474653464312f494d475f303036332e6a7067.jpg)

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.

## 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][@hakobyte]

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

+ _**(based on snaphax by [@tlack][@tlack] & [@adamcaudill][@adamcaudill])**_

**imagecrop** - an image cropping library made by [abraham daniel][@abrahamdaniel]

**Team Snapchat**

and

BERG Cloud for creating Little Printer!

http://hakob.yt/e/

[@hakobyte]: https://twitter.com/hakobyte
[@dstelljes]: https://github.com/dstelljes
[@tlack]: https://twitter.com/tlack
[@adamcaudill]: https://twitter.com/adamcaudill
[@abrahamdaniel]:https://github.com/abrahamdaniel/imageCrop