Update app.py
Browse files
app.py
CHANGED
|
@@ -8,10 +8,29 @@ BASE_API_URL = "https://openlibrary.org/search.json"
|
|
| 8 |
|
| 9 |
# Subject list
|
| 10 |
SUBJECTS = [
|
| 11 |
-
"Classic Literature", "Modern Literature", "Postmodern Literature", "Romanticism",
|
| 12 |
-
"
|
| 13 |
-
"
|
| 14 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
]
|
| 16 |
|
| 17 |
# Function to fetch books based on subject and year range
|
|
|
|
| 8 |
|
| 9 |
# Subject list
|
| 10 |
SUBJECTS = [
|
| 11 |
+
"Classic Literature", "Modern Literature", "Postmodern Literature", "Romanticism",
|
| 12 |
+
"Realism", "Naturalism", "Existentialism", "Absurdism", "Gothic Fiction", "Science Fiction",
|
| 13 |
+
"Fantasy Literature", "Historical Fiction", "Mystery and Detective Fiction", "Horror Literature",
|
| 14 |
+
"Adventure Novels", "Bildungsroman", "Epistolary Novels", "Satire", "Tragedy", "Comedy",
|
| 15 |
+
"Dystopian Literature", "Utopian Literature", "Magical Realism", "Stream of Consciousness",
|
| 16 |
+
"Metafiction", "Allegory", "Mythology", "Folklore", "Fairy Tales", "Poetry", "Epic Poetry",
|
| 17 |
+
"Lyric Poetry", "Sonnet", "Haiku", "Free Verse", "Drama", "Tragicomedy", "Theater of the Absurd",
|
| 18 |
+
"Shakespearean Plays", "Greek Tragedy", "Elizabethan Drama", "Restoration Comedy", "Modern Drama",
|
| 19 |
+
"Expressionism in Theater", "Surrealism in Literature", "Symbolism", "Transcendentalism",
|
| 20 |
+
"Stoicism", "Epicureanism", "Nihilism", "Phenomenology", "Structuralism", "Post-Structuralism",
|
| 21 |
+
"Deconstruction", "Feminist Literature", "Postcolonial Literature", "Marxist Literary Criticism",
|
| 22 |
+
"Psychoanalytic Criticism", "Reader-Response Criticism", "Formalism", "New Criticism",
|
| 23 |
+
"Cultural Studies", "Comparative Literature", "World Literature", "African Literature",
|
| 24 |
+
"Asian Literature", "Latin American Literature", "European Literature", "American Literature",
|
| 25 |
+
"British Literature", "Russian Literature", "French Literature", "German Literature",
|
| 26 |
+
"Italian Literature", "Spanish Literature", "Ancient Literature", "Medieval Literature",
|
| 27 |
+
"Renaissance Literature", "Enlightenment Literature", "Victorian Literature", "Modernist Literature",
|
| 28 |
+
"Postmodernist Literature", "Contemporary Literature", "Literary Theory", "Narrative Theory",
|
| 29 |
+
"Rhetoric", "Semiotics", "Hermeneutics", "Aesthetics", "Ethics in Literature",
|
| 30 |
+
"Political Philosophy in Literature", "Religious Themes in Literature", "Moral Philosophy",
|
| 31 |
+
"Philosophy of Language", "Philosophy of Mind", "Metaphysics", "Epistemology", "Logic",
|
| 32 |
+
"Philosophy of Art", "Philosophy of History", "Philosophy of Science", "Philosophy of Religion",
|
| 33 |
+
"Ancient Philosophy", "Medieval Philosophy", "Modern Philosophy", "Contemporary Philosophy"
|
| 34 |
]
|
| 35 |
|
| 36 |
# Function to fetch books based on subject and year range
|