GithubHelp home page GithubHelp logo

ezmemes's Introduction

ezmemes

A wrapper in Python designed to give memes in a hassle-free way. High-quality meme APIs aren't easy to find, so this will grab memes from Reddit through the Reddit API.

It can be used in both Sync (Requests) and Asnyc (Aiohttp).

Getting Started Run this on your command prompt: pip install git+https://github.com/bananaboy21/ezmemes (PyPi coming soon)

Updating to new versions Run this on your command prompt: pip install -U https://github.com/bananaboy21/ezmemes

Example Usage

import ezmemes

memey_stuff_of_life = ezmemes.Client(is_async=True)

await memey_stuff_of_life.get_meme()

Endpoints async def get_meme(self, limit=500, position=None) Gets a meme from Reddit.

Params: limit (int): How many posts to collect from Reddit. The greater this is, the longer it will take position: (int) The position the meme shoudld be taken from. Defaults to a random position.

Return type: dict

Attributes (one|two used to represent two different attribute names with the same function, or an alias.) image_url | url (str): The URL of the image. title | name (str): The title of the image. Great for a short descriptive text of your meme. thumbsup (int): The number of thumbs up that the meme got on Reddit. thumbsdown (int): The number of thumbs down that the meme got on Reddit. subreddit (str): THe subreddit that the meme came from.

ezmemes's People

Contributors

erickang21 avatar iceemc 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.