GithubHelp home page GithubHelp logo

marvel-api's Introduction

marvel-api

This project uses the Marvel API to generate an HTML page containing a story's title, description and its characters (represented by their thumbnail and their name).

Configuration

Inside the config.ini file you can specify which story ID to gather from the API. Also, you must specify both your PUBLIC KEY and PRIVATE KEY, otherwise the generator won't be able to access the API. To generate your API keys, follow the instructions at the docs.

Dependencies

To correctly run this code you need the following dependencies installed:

  • Python>=3.9.4;
  • Tailwind CSS (automatically imported inside the HTML)

The following dependencies are Python packages and can be installed by running

python -m pip install -r requirements.txt

Python packages:

  • Jinja2>=2.11.3;
  • requests>=2.25.1

Running

After all the configurations are done, you can generate your favorite story's HTML by simply running the generate.py script:

python generate.py

The output will be placed on the root folder and will be named "output.html".

marvel-api's People

Contributors

tiagomagnusss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.