Final Project - Marvel Storyline Generator - Please Review


#1

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


#2

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!