Final Project - Marvel Storyline Generator - Please Review

This project scrapes the storylines of Marvel movies from IMDB, feeds them to a Markov Chain, and generates potential new plot lines based on the previous movie synopses. See the “expanded-functionality” branch for an additional feature. (Please note, this program is also in python 3).

Have fun!

Some of my favorite generated stories include:

  • jane foster (portman) teaches thor much needed lessons and his new found strength comes into play as a new villain emerges marvel’s “doctor strange” follows…

  • steve rogers is frustrated at being rejected yet again for military service everything changes when dr erskine is then immediately assassinated by an agent of…

  • jane foster (portman) teaches thor much needed lessons and his weak body is suddenly enhanced into the maximum human potential when dr erskine recruits him…

  • pepper potts and james “rhodey” rhodes at his side must forge new alliances and confront powerful enemies the warrior thor (hemsworth) is cast out of…

  • hela after the events after the gamma bomb ‘the incredible hulk’ tells the story of the talented neurosurgeon doctor stephen strange who after a tragic…

Happy to hear your comments!
Thanks,
Kristin

There is a problem when I try to run it since there isn’t any file called “marvel_storylines_from_urls.txt” at the repository. Also the relative path had to be changed (in my case) from from markov_python.cc_markov import MarkovChain to from cc_markov import MarkovChain

EDIT: Nevermind, forgot to install the request and bs4 modules using pip3, so fetch data generates the marvel_storylines_from_urls.txt file first and then you can run the program using run.py.

So after following these steps (which aren’t documented on the repository), I got:

“Next from the Marvel Cinematic Universe:
after a tragic car accident must put ego aside and learn the secrets of a hidden world of mysticism and alternate dimensions based in new york city’s greenwich village doctor…”

It is pretty good :smiley: Congrats!

Working on this project and came across your code, very nice! After some editing I was able to get it to work with my terminal.

“Next from the Marvel Cinematic Universe:
a chest full of shrapnel and a car battery attached to his heart in order to survive by his own country when two foes conspire to destroy wakanda the hero…”

Awesome! Glad it works for you!

1 Like

Circling back on this project to review the topic, I’ve used the code from github above as a skeleton for creating a new song based off an artist’s lyrics. please check out the code and let me know if you have any recommendations/ feedback, thanks again! https://github.com/el-protoman/cc_markov_chain

Intended for python 2.7