heckerfr0d / Videogame-Quotes-API

A cool API for random videogame quotes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Videogame Quotes API

A simple API project to retrieve videogame quotes

import requests

request = requests.get("http://localhost:8000/quotes")
content = request.json()

print(content["quote"])  # 'FINISH HIM!'
print(content["game"])  # 'Mortal Kombat'

(Find more ideas in /examples!)

Running the API locally

Note: Python 3.9 or higher is recommended.

  1. Clone the repository.
    $ git clone https://github.com/Batucho/Videogame-Quotes-API
  2. Install the dependencies.
    $ pip install -r requirements.txt
  3. Run the API!
    $ python src/__main__.py
  4. Check it out at localhost:8000 or 127.0.0.1:8000.

Feel free to contribute by opening an issue or pull request!

Disclaimer

This project is for educational purposes only. The maintainers and contributors of this project claim no ownership or credit for the quotes listed.

Sources

Quotes have been retieved from the following sources:

About

A cool API for random videogame quotes

License:MIT License


Languages

Language:Python 100.0%