Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A simple Python wrapper for the Dribbble API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 dribbble
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 requirements.txt
Octocat-spinner-32 setup.py
Octocat-spinner-32 test.py
README.md

dribbble

Build Status

A simple Python wrapper for the Dribbble API.

Installation

The easiest way to get the API is by using pip:

pip install dribbble

Usage

The dribbble wrapper intends to make the API as easy to use as possible.

>>> import dribbble as d

# Get info on a player
>>> d.info('simplebits')

# Alternative, cooler name for getting info
>>> d.scout('simplebits')

# See the current community shots
>>> d.shots('popular')
>>> d.shots('everyone')
>>> d.shots('debut')

# Pagination and up to 30 shots at a time.
>>> d.shots('popular', count=30, page=2)

# Get shots for a player
>>> d.shots('simplebits')
>>> d.player('simplebits')

# Get information on a particular shot
>>> d.shot(1234)

# See a particular shot's rebounds
>>> d.rebounds(591065)

# Get comments on a shot
>>> d.comments(607332)

# See the likes for a player
>>> d.likes('simplebits')

# Get the followers of a player
>>> d.followers('lobanovskiy')

# See who a player is following
>>> d.following('simplebits')
>>> d.teammates('vi')

# Get recent shots from the players a player is following
>>> d.scoreboard('simplebits')

# See who a given player has drafted
>>> d.draftees('CreatureBox')

# Get the Twitter username of a player
>>> d.twitter('vi')

If you have lxml installed, there are two additional functions, as well.

# Check to see if a shot has attachments
>>> d.attachments(535565)

# See if a shot has PSD attachments
>>> d.psd(607070)
Something went wrong with that request. Please try again.