Skip to content

Commit aa9216d

Browse files
VishalRohraCuriousLearner
authored andcommitted
Enables scraping Python section (#8)
* Added python section * Added in-page links for html * Removed in-page links for html
1 parent 1102242 commit aa9216d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

g4g.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@
1010
BASE_URL = 'http://www.geeksforgeeks.org/'
1111
articles = []
1212

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

1717

1818
def display_menu():
1919
print("Choose category to scrape: ")
2020
print("1. C Language")
2121
print("2. C++ Language")
2222
print("3. Java")
23-
print("4. Algorithms")
24-
print("5. Data Structures")
23+
print("4. Python")
24+
print("5. Algorithms")
25+
print("6. Data Structures")
2526

2627

2728
def get_category_choice():

0 commit comments

Comments
 (0)