# redditmemeapi
A pythonic API wrapper to fetch memes from https://meme-api.com
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.
```bash
pip install redditmemeapi
```
## Usage
```python
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](https://choosealicense.com/licenses/mit/)
Raw data
{
"_id": null,
"home_page": "https://github.com/therealcyber71/redditmemeapi",
"name": "redditmemeapi",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "memes,api,discord,telegram",
"author": "thereal_cyber",
"author_email": "quantechlxxi.corp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/95/fb/95fbcdc35177a008505a3aa152ac505c7cfe4213793a1f8101a37983c469/redditmemeapi-0.0.3.tar.gz",
"platform": null,
"description": "# redditmemeapi\r\n\r\nA pythonic API wrapper to fetch memes from https://meme-api.com\r\n\r\n## Installation\r\n\r\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install foobar.\r\n\r\n```bash\r\npip install redditmemeapi\r\n```\r\n\r\n## Usage\r\n\r\n```python\r\nfrom redditmemeapi import gimme\r\n# get a random meme from 'memes', 'dankmemes', 'me_irl' subreddits\r\nprint(gimme())\r\n\r\nfrom redditmemeapi import gimmenum\r\n# get specified number of memes\r\nx = gimmenum(2) #max value 50\r\nfor i in x['memes']:\r\n print(i['url'])\r\n\r\nfrom redditmemeapi import specifysub\r\n# get memes from a specified subreddit\r\nprint(specifysub('okbuddyretard')) #max value 1\r\n\r\nfrom redditmemeapi import subnum\r\n# get specified number of memes from a specified subreddit\r\nx = subnum('okbuddyretard',3) #max one sub, max 50 memes\r\nfor i in x['memes']\r\n print(i['url'])\r\n```\r\n\r\n## Contributing\r\n\r\nPull requests are welcome. For major changes, please open an issue first\r\nto discuss what you would like to change.\r\n\r\nPlease make sure to update tests as appropriate.\r\n\r\n## License\r\n\r\n[MIT](https://choosealicense.com/licenses/mit/)\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A pythonic API wrapper to fetch memes from https://meme-api.com",
"version": "0.0.3",
"split_keywords": [
"memes",
"api",
"discord",
"telegram"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "95fb95fbcdc35177a008505a3aa152ac505c7cfe4213793a1f8101a37983c469",
"md5": "1ba166b391b153a4c9825b7a61f56a34",
"sha256": "22505e12c63b337493c1c0c6205f1091c5492cac2391baa4b02c27b3a3f6d08c"
},
"downloads": -1,
"filename": "redditmemeapi-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "1ba166b391b153a4c9825b7a61f56a34",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3307,
"upload_time": "2023-01-03T13:59:38",
"upload_time_iso_8601": "2023-01-03T13:59:38.800872Z",
"url": "https://files.pythonhosted.org/packages/95/fb/95fbcdc35177a008505a3aa152ac505c7cfe4213793a1f8101a37983c469/redditmemeapi-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-01-03 13:59:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "therealcyber71",
"github_project": "redditmemeapi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "redditmemeapi"
}