A cinema release tracker for the UAE written in Python using the Flask microframework. The application is not complete, but it does have a functioning auth system implemented using a variety of plugins, including:
It also depends on the following libraries for certain other functions:
lxml
is optional, but preffered. If you do not want to use it, open grab.py
and simply remove it as a second parameter to the two BeautifulSoup
objects.
soup = BeautifulSoup(..., "lxml") # Remove "lxml" (and the comma, of course)
It was supposed to become a large-scale movie release tracker for the UAE, but was unfortunately an over-ambitious project from the get-go.
aflam scrapes movie release info from the Vox Cinemas homepage, then processes it using themoviedb.org's API. The resulting data is stored into a database table using the SQLAlchemy ORM. The final piece, the website, uses this stored data in its views and adds user accounts and authentication to the mix.
To run the application, you'll obviously need to install Flask and the extensions mentioned above. This can be done in one step using the included requirements.txt
.
pip install -r "requirements.txt"
You'll then need to modify a few settings.
- In
config.py
, setSQLALCHEMY_DATABASE_URI
to your database's link. - In
tmdb.py
, setAPI_KEY
to your tMDB API key. Obviously, you'll need to apply for one. You can read more about it here.
With the above done, the web app should run (almost) perfectly.
If you ever run this application and find a bug or two, don't hesitate to report it using the Issue Tracker.