.modal display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); overflow: auto;
result = movie_service.get_movie_details(url) return jsonify(result) if == ' main ': app.run(debug=True, port=5000) 3. Frontend HTML/JavaScript <!-- templates/index.html --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Einthusan - Malayalam Movies</title> <style> * margin: 0; padding: 0; box-sizing: border-box; body font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; einthusan malayalam movies list
.movie-card background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; .modal display: none
def get_movie_details(self, movie_url: str) -> Dict: """Fetch detailed information about a specific movie""" try: response = self.session.get(movie_url) response.raise_for_status() soup = BeautifulSoup(response.content, 'html.parser') details = 'title': self._get_text(soup, 'h1, .movie-title'), 'year': self._get_text(soup, '.year, .release-year'), 'director': self._get_text(soup, '.director, .director-info'), 'cast': self._get_text(soup, '.cast, .actor-list'), 'description': self._get_text(soup, '.description, .synopsis, .plot'), 'genres': self._get_text(soup, '.genre, .categories'), 'duration': self._get_text(soup, '.duration, .runtime'), 'language': 'Malayalam', 'url': movie_url return 'success': True, 'details': details except Exception as e: return 'success': False, 'error': str(e) # app.py from flask import Flask, render_template, request, jsonify from flask_cors import CORS from einthusan_service import EinthusanMalayalamMovies import logging app = Flask( name ) CORS(app) logging.basicConfig(level=logging.INFO) Initialize service movie_service = EinthusanMalayalamMovies() port=5000) 3. Frontend HTML/JavaScript <
function setupPagination(totalPages) const paginationDiv = document.getElementById('pagination'); if (totalPages <= 1) paginationDiv.innerHTML = ''; return;
#clearBtn:hover background: #e53e3e;
BASE_URL = "https://einthusan.com" MALAYALAM_URL = "https://einthusan.com/movies/malayalam/"