Skip to main content
  1. Projects/

ImgurApi

·63 words·1 min
Jake Roggenbuck
Author
Jake Roggenbuck
I am currently studying Computer Science

ImgurApi #

Simple Imgur library to interface with the Imgur web API

from main import Imgur

# Create object
imgur = Imgur()


# Upload image
imgur.upload("test.jpg")

# Get viewable images (Not Blocked Not Deleted)
imgur.get_viewable_images()

# Block image by hash (Know as "id")
imgur.block("<image hash>")

# Delete image by hash (Know as "id")
imgur.delete("")

# View all things in the uploaded collection
imgur.view()