Skip to content

JTMC-G3/Kirk-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kirk-images

A collection of Kirk Images for you to download or use as an API

Basic Usage

Simply go to the github link

API like usage

Here is some basic python code that prints a random image

import requests
import random

def kirk():
    try:
        response = requests.get("https://jtmc-g3.github.io/Kirk-images/images.json")
        
        if response.status_code == 200:
            data = response.json()
            images = data.get('images', [])
            
            if images:
                random_image = random.choice(images)
                
                image_url = f"https://jtmc-g3.github.io/Kirk-images/{random_image}"
                
                print(image_url)
            else:
                print("No images found in the JSON data.")
        else:
            print(f"Failed to fetch data. Status code: {response.status_code}")
    except Exception as e:
        print(f"Error: {e}")


kirk()

This prints a random kirkified image from the url (sorry if it syntax errors. i wrote it in the readme)

About

A collection of Kirk Images for you to download or use as an API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published