Coder Social home page Coder Social logo

uzunhair / cyclic_tv_reference_paradox_finder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jamiepinheiro/cyclic_tv_reference_paradox_finder

0.0 0.0 0.0 25.59 MB

A tool for finding Cyclic TV Reference Paradoxes

Home Page: https://jamiepinheiro.com/cyclic_tv_reference_paradox_finder/

Python 36.36% TypeScript 56.96% CSS 2.40% HTML 4.27%

cyclic_tv_reference_paradox_finder's Introduction

Cyclic Tv Reference Paradox Finder

Cyclic TV Reference Paradoxes occur when a chain of fictional TV show references form a cycle. Each show’s reality depends on another being fictional, so a cycle of these dependencies is a paradox.

ie.

The Simpson's referenceing Rick and Morty, and Rick and Morty referencing The Simpson's

Here, in the Simpsons' fictional universe, Rick and Morty exists as a TV show (shown by the reference). However, in the Rick and Morty fictional universe, The Simpsons also exists as a TV show. These two references create a cycle where each depends on the other being fictional in their respective universe, which cannot both be true simultaneously - a paradox!

This project finds these paradoxes through looking through subtitles files of popular TV shows. It is divided into two sections:

Reference Gen Scripts

A set of python scripts to get the subtitles, and eventually output a CSV file of all TV show references found to be displayed in a web app.

Script Explanation
get_top_tv_show_subtitles.py Downloads subtitles of the top TV shows listed on The Movie DB. Be sure to set the TMDB_API_KEY environment variable to your API key.
index_srts.py Indexes all subtitle files downloaded by get_top_tv_show_subtitles.py with Woosh.
search_subtitles.py Searches the index generated by index_srts.py for a keyword.
gen_output_data.py Generates a graph of TV show references from the index generated by index_srts.py (and saves it to disk). Outputs a CSV of all references found in the index above as well a CSV of all TV shows used.
find_cycles_in_references.py Runs a DFS on the graph outputted in gen_output_data.py to find cycles in references.

Web App

A react web app for visualizing the the graph generated by the Reference Gen Scripts. Run with npm run start to test locally.

Screenshot of the web app showing references to/from the Simpsons

Screenshot of the web app showing a cycle of TV show references

cyclic_tv_reference_paradox_finder's People

Contributors

jamiepinheiro 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.