Giter Club home page Giter Club logo

urbandict_py's Introduction

urbandict_py

Urban Dictionary API Python Helper

Just a quick and dirty way to use the Urban Dictionary API in python. Does some basic cleaning. Returns you the full json dump as a dict. Might save someone a few minutes.

Example

from urbandict import urbandict
urbandict("rare pepe")

Output Example

{   
    u'list': [   {   u'author': u'hagueharry',
                     u'current_vote': u'',
                     u'defid': 8343751,
                     u'definition': u'A Pepe that is rare. A collector will always be on the look-out for new rare pepes to add to their collection, which no doubt already contains a lot of rare pepes. While one might be inclined to show off their rare pepes it is adviced to do so with caution, should the rare pepe be shared too much there is a good chance it will devalue in rarity.',
                     u'example': u"person 1: Oh wow that is a rare pepe!\r\nperson 2: Save it, it's all yours my friend. I have plenty of more rare pepes in my collection.",
                     u'permalink': u'http://rare-pepe.urbanup.com/8343751',
                     u'thumbs_down': 15,
                     u'thumbs_up': 81,
                     u'word': u'rare pepe'}],
    u'result_type': u'exact',
    u'sounds': [],
    u'tags': []
}

urbandict_py's People

Contributors

nmercer avatar hritik14 avatar

Watchers

James Cloos avatar  avatar

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.