Skip to content
Dashboard that list movies from TheMovieDB API
Python Other
  1. Python 99.2%
  2. Other 0.8%
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
app
venv
Procfile
README.md
bpm.png
main.py
requirements.txt
runtime.txt

README.md

Movies Scraping

"Dashboard that list upcoming movies from TheMovieDB API"

Architecture

Using Python on the backend of the application was easy to make requisitions to TheMovieDB API. The idea was to use the Requests library to create all the GET methods from a python class that works like a middleware betteween Front and API. Also, Flask works like a MVC application with the routes and static templates without a lot of configuration like others stacks.

  • Some movies does not have a image path, so I had to create a "default" image and show it instead of showing none
  • I created a cache mechanism to cache each requested page for 5 minutes. Each page works like a "CacheItem" and it is insert into the "Cache" structure.

Installation

OS X & Linux:

python get-pip.py
cd <project folder>
source venv/bin/activate
pip3 install -r requirements.txt
export FLASK_APP=main.py
flask run

Heroku APP

https://movies-scraping.herokuapp.com/movies/upcoming

Technologies, Extensions and Libraries

  • Python
  • Flask (Microframework to web development)
  • Requests (Simple library to make HTTP requests)
  • Javascript
  • Jquery
  • Bulma.io (Modern, simple and different CSS Framework)
  • Heroku (To deploy application)

Authors:

You can’t perform that action at this time.