File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def _extract_sections_from_wikipedia_page(
61
61
# Adding the intro section, before the first h2 tag
62
62
paragraphs = []
63
63
for element in soup .find_all (["p" , "h2" ]):
64
- if element .name == "h2" :
64
+ if element .name == "h2" and element . get_text () != "Contents" :
65
65
break
66
66
if element .name == "p" :
67
67
paragraphs .append (element .get_text ())
Original file line number Diff line number Diff line change 104
104
"birth_year" : 1838 ,
105
105
"death_year" : 1875
106
106
},
107
+ {
108
+ "full_name" : " Felix Blumenfeld" ,
109
+ "wikipedia_url" : " https://en.wikipedia.org/wiki/Felix_Blumenfeld" ,
110
+ "first_names" : " Felix Mikhailovich" ,
111
+ "last_name" : " Blumenfeld" ,
112
+ "birth_year" : 1863 ,
113
+ "death_year" : 1931
114
+ },
107
115
{
108
116
"full_name" : " Luigi Boccherini" ,
109
117
"first_names" : " Luigi" ,
You can’t perform that action at this time.
0 commit comments