GithubHelp home page GithubHelp logo

snapcode's Introduction

rsz_21rsz_1sdushantha SnapCode

Why?

I just found a way to download snapcodes with or without the Bitmoji on them and thought it was really cool. Also, since SnapChat does not have an API, I found this to be even cooler because the method I used to get the snapcodes could be used in an unofficial SnapChat API in the future.

Installation

git clone https://github.com/sdushantha/SnapCode.git

Usage

usage: snapcode.py [-h] [-b] [-s SIZE] username

A simple command-line tool to download SnapChat codes.

positional arguments:
  username

optional arguments:
  -h, --help            show this help message and exit
  -b, --bitmoji         SnapCode with Bitmoji
  -s SIZE, --size SIZE  Size of the SnapCode (pixels)

The -b command lets you choose if you want Bitmoji on the SnapCode.

The file will download to the directory where you ran snapcode.py from.

snapcode's People

Contributors

sdushantha avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dr-jok

snapcode's Issues

UnboundLocalError: local variable 'request_url' referenced before assignment

Issue: bug 01

fatal error while running python file snapcode.py with the correct syntax

Steps to reproduce the error

when terminal command:
python snapcode.py username
is run utilizing python 3

Computer version and system

Mac O.S 10.15
Both terminal and python IDLE

Actual behavior

Following traceback is displayed

Traceback (most recent call last):
  File "snapcode.py", line 73, in <module>
    main()
  File "snapcode.py", line 70, in main
    get_code(args.username)
  File "snapcode.py", line 36, in get_code
    urllib.request.urlretrieve(request_url, path)
UnboundLocalError: local variable 'request_url' referenced before assignment

Expected behavior

An image file representing the snap code of the user to be download to the directory where you ran snapcode.py from

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.