Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions g4g.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,19 @@
BASE_URL = 'http://www.geeksforgeeks.org/'
articles = []

choice_to_category = {1: 'c', 2: 'c-plus-plus', 3: 'java',
4: 'fundamentals-of-algorithms',
5: 'data-structures'}
choice_to_category = {1: 'c', 2: 'c-plus-plus', 3: 'java', 4: 'python',
5: 'fundamentals-of-algorithms',
6: 'data-structures'}


def display_menu():
print("Choose category to scrape: ")
print("1. C Language")
print("2. C++ Language")
print("3. Java")
print("4. Algorithms")
print("5. Data Structures")
print("4. Python")
print("5. Algorithms")
print("6. Data Structures")


def get_category_choice():
Expand Down