Scrapes movie/TV Series details and twitter sentiments about the same. Front end src : https://github.com/it-worked-yesterday/HowsTheMovie-FrontEnd
Scrapes movie/TV Series details from IMDB and analyses twitter sentiments about the same.
This module creates 2 rest apis based on Python/Flask open for GET
requests:
Clone the repo
$ git clone https://github.com/it-worked-yesterday/HowsTheMovie-FrontEnd.git
Now create the virtualenv of Python3.6 using
$ conda create --name howsTheMovie python=3
Activate the environment and install requirements using pip, navigate to linkedin folder which have spider as a subfolder and start the bot
$ source activate howsTheMovie
$ pip install -r requirements.txt
Set Consumer and Access keys
Run the flask app
$ export FLASK_APP=index.py
$ export FLASK_DEBUG=1
$ python -m flask run
The flask server will create 2 Rest endpoints locally, which you can :
0.0.0.0:5000/howsthemovie/getmoviedetails?movie_name=
0.0.0.0:5000/howsthemovie/gettwittersentiments?hashtag=
NOTE
When hosting to a server be sure to addapp.run(host=<host>, port=<port>)
to index.py file as per the hosting service
documentation.