legeorges

legeorges / redditimagegrabber / 0.3.1

reddit image grabber

Royalty Free
Automatically grab images from any Reddit subreddit
Language
Python 2.x
Metrics
API Calls - 204 Avg call duration - N/A
Permissions
The GNU General Public License (GNU GPL or GPL) is a free software license which guarantees end users the freedom to run, study, share and modify the software. Learn More

Run an Example

Input
Output
{
  "after": "t3_498437",
  "results": [
    {
      "url": "http://imgur.com/uAO2zgv",
      "name": "t3_4aila1",
      "thumbnail": "http://b.thumbs.redditmedia.com/g8I0tyKmS-_Ut3lO_MZdNNCtxO5vukN522saJ8fBXyI.jpg"
    },
    {
      "url": "https://imgur.com/a/CzWE7",
      "name": "t3_4agai1",
      "thumbnail": "http://b.thumbs.redditmedia.com/lHlbPHV73sQUuf7q02_aXxnpjh1oe2MAf6KOrTRxZZU.jpg"
    },
    {
      "url": "http://imgur.com/ctnW7Ld",
      "name": "t3_4affnb",
      "thumbnail": "http://b.thumbs.redditmedia.com/S7H1FQDMKwWupKfSNt7hypu1TzjdcmmLmJKs1RkPE1Q.jpg"
    },
    {
      "url": "http://imgur.com/GLl5qLa",
      "name": "t3_4adozj",
      "thumbnail": "http://a.thumbs.redditmedia.com/Njljo9TZdIjOB5S6EI7NKwND7M28l-yE2-huzyx_2d8.jpg"
    },
    {
      "url": "http://imgur.com/a/6zlJi",
      "name": "t3_4ad3dj",
      "thumbnail": "http://b.thumbs.redditmedia.com/Xp6Hi3u86OM56Q7jrJ2XnOc65wR-n22t18iPVjl5AYs.jpg"
    },
    {
      "url": "http://imgur.com/gallery/8rtnbYL",
      "name": "t3_4ababf",
      "thumbnail": "http://b.thumbs.redditmedia.com/ugS1-SmKdyUldGeGGE-Vo2Bh0DM45kpZwpQiOXoIL8Y.jpg"
    },
    {
      "url": "http://i.imgur.com/WzzsIHj.jpg",
      "name": "t3_4a93vr",
      "thumbnail": "http://b.thumbs.redditmedia.com/iAqLJtQULYLEY8NFcLX5yBul2oBSiUZa1tkGDhQ6I2k.jpg"
    },
    {
      "url": "http://imgur.com/NnZcaJt",
      "name": "t3_4a59ku",
      "thumbnail": "http://a.thumbs.redditmedia.com/Nw3KhdbB1tHToayFfO0w3VRAFoZrnUXn3T-GYkjxGO8.jpg"
    },
    {
      "url": "http://imgur.com/V9SimNy,RTOMav9",
      "name": "t3_4a4983",
      "thumbnail": "http://b.thumbs.redditmedia.com/OqK8fNom0xnIKFdiyw5a-Y4hm153CCQQ2nY6EP4A0BU.jpg"
    },
    {
      "url": "http://imgur.com/jo4zyzO",
      "name": "t3_49phbe",
      "thumbnail": "http://b.thumbs.redditmedia.com/hU-m4VXafu1R8ajcE1gMrWMaVaxeO4IB8i907ii-Vjo.jpg"
    },
    {
      "url": "http://imgur.com/a/OoQRt",
      "name": "t3_49nv8g",
      "thumbnail": "http://b.thumbs.redditmedia.com/rnk3nE6DNuk7ue2OIjzIB4LTpieMWCO-kYDKTYHJFpM.jpg"
    },
    {
      "url": "http://imgur.com/S5Azp8m",
      "name": "t3_49ig05",
      "thumbnail": "http://b.thumbs.redditmedia.com/sy2GypWSdFqk5fwOFv4QhQsP6teqsuRJDi56uh4qOwI.jpg"
    },
    {
      "url": "http://imgur.com/kKRMFht",
      "name": "t3_49czz7",
      "thumbnail": "http://b.thumbs.redditmedia.com/jhns8gv38oCxgIN2waTd-6UO1k8KlgRmuQiKqZKwRHA.jpg"
    },
    {
      "url": "http://imgur.com/nqpRIbo",
      "name": "t3_499i9q",
      "thumbnail": "http://b.thumbs.redditmedia.com/NGubFchP952AEu3pQH_f2csbRZRPd_ZZldkXye2TOsM.jpg"
    },
    {
      "url": "http://imgur.com/Cv9SS6n",
      "name": "t3_499b58",
      "thumbnail": "http://a.thumbs.redditmedia.com/D3mUwMXEedv2hWjxIh-WrTb6cBOoDHIF3vOq8ZfeV40.jpg"
    },
    {
      "url": "http://imgur.com/H04a89r",
      "name": "t3_498437",
      "thumbnail": "http://b.thumbs.redditmedia.com/uD07wD-ZdZM84ApVi8Nymx9QPskxpXd02X4U7pW0ekg.jpg"
    }
  ],
  "before": null
}

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run legeorges/redditimagegrabber/0.3.1 -d '{"subreddit":"puppies", "category":"new", "user_agent":"algorithmia"}' --timeout 300
  
CLI Docs