Skip to main content

A pythonic API wrapper to fetch memes from https://meme-api.com

Project description

redditmemeapi

A pythonic API wrapper to fetch memes from https://meme-api.com

Installation

Use the package manager pip to install foobar.

pip install redditmemeapi

Usage

from redditmemeapi import gimme
# get a random meme from 'memes', 'dankmemes', 'me_irl' subreddits
print(gimme())

from redditmemeapi import gimmenum
# get specified number of memes
x = gimmenum(2) #max value 50
for i in x['memes']:
    print(i['url'])

from redditmemeapi import specifysub
# get memes from a specified subreddit
print(specifysub('okbuddyretard')) #max value 1

from redditmemeapi import subnum
# get specified number of memes from a specified subreddit
x = subnum('okbuddyretard',3) #max one sub, max 50 memes
for i in x['memes']
   print(i['url'])

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redditmemeapi-0.0.3.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file redditmemeapi-0.0.3.tar.gz.

File metadata

  • Download URL: redditmemeapi-0.0.3.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for redditmemeapi-0.0.3.tar.gz
Algorithm Hash digest
SHA256 22505e12c63b337493c1c0c6205f1091c5492cac2391baa4b02c27b3a3f6d08c
MD5 1ba166b391b153a4c9825b7a61f56a34
BLAKE2b-256 95fb95fbcdc35177a008505a3aa152ac505c7cfe4213793a1f8101a37983c469

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page