Maintaining focus and attention while reading educational articles can be challenging. We recognized this issue and aimed to provide a solution that makes learning more engaging.
Our web application takes a link to an article, scrapes the text, and puts it in the TikTok Subway Surfers-style video. This format is highly engaging which enables users to pay attention to the content and absorb information effectively.
We used Python, HTML/CSS, Flask, OpenCV, goose3, Vosk API, and various other python libraries.
We tested our code on MacOS.
The local server should work on Safari, Chrome, and Firefox browsers.
-
Install Python (>= 3.11)
-
Clone our repository.
git clone https://github.com/danielbonkowsky/subwaysurfers-text.git -
Install
pip3dependenciespip3 install -r requirements-pip.txt -
Install
brewdependencies:xargs brew install < requirements-brew.txt -
Download the Subway Surfers background gameplay, title it
surf.mp4and place it in thestaticfolder of your local repository. -
Download the Vosk English Model, unzip the folder and place it in the
staticfolder of your local repository.
-
Navigate into the repository in your terminal.
-
Create the development server.
flask run -
Open the local server in your browser.
-
Paste a link to the article you want converted into the textbox, and press
<enter>! The video takes a while to generate, but the terminal should show that the program is running.- If it asks you to override any files, override them.