Giter Club home page Giter Club logo

nono-04 / notion-videogame-gallery Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adriansteffan/notion-videogame-gallery

0.0 0.0 0.0 69 KB

This script makes tracking videogames with Notion databases more delightful by automatically adding images and metadata about the games you have played or want to play.

Home Page: https://adriansteffan.notion.site/8358e5f496f846a4a4e9ded10d67fa27?v=4578337d13cb4addb6326c85fe4ab539

Python 99.52% Dockerfile 0.48%

notion-videogame-gallery's Introduction

Notion Video Game Gallery

This script makes tracking videogames with Notion databases more delightful by automatically adding images and metadata about the games you have played or want to play.

It does so by fetching data from various places around the internet (Steam, SteamGrid, IGDB, Youtube, HLTB) and using the Notion API to connect it to your database.

If you want to see the results, you can take a look at a minimalist example or my lovely collection.

The code could still be improved in various places, but c'mon, this bot is trying his hardest to make your game collection shine, who could judge him for being a bit messy?

Fork

This fork added some properties from IMDB Genres, Critics Rating, People Rating, Game Modes, Involved Companies, Keywords, Player Perspective

Setup

These steps are needed for both deployment and development.

Deployment

For the deployment on your Linux machine, you will need both docker and docker-compose.

To build the docker image, run

docker-compose build

in the root directory.

After completing the setup, start the container with

docker-compose up -d

Stop the server with

docker-compose down

Development (Local)

For development, you will need a Python3 installation.

To install the dependencies, run

python3 -m pip install -r requirements.txt

in the root directory.

To start the script, run

python3 main.py

in the root directory.

Usage

Once the script is running (either locally or on your server), head over to the databse that you cloned. You can load the game data by setting the Data Fetched property. Use Load All to set properties and page data and use Load Images to refetch the icon, cover, and hero in case the links die.

The game will be identified either using the games Steam-ID or its name:

  • If the SteamID property is set, the game data will be loaded and all other fields will be updated accordingly. If possible/sensible, the images will be taken directly from Steam.
  • If no SteamID is present, the name will be used to load the game data, with all image properties being filled by SteamGrid. The title of the page will stay unaffected.

It will take a couple of seconds for your data to update. You are free to add as many custom properties to the pages as you like, as long as you do not alter the properties that were copied from the example page (you can, however, move/hide them without breaking the code).

Authors

notion-videogame-gallery's People

Contributors

adriansteffan avatar nono-04 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.