File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -198,14 +198,14 @@ def parse_sub_api(api_link, sub_api_data_container):
198
198
199
199
# Parse the HTML content
200
200
soup = BeautifulSoup (html_content , 'html.parser' )
201
- for s_api in soup .find ('div' , class_ = 'task-group' ). find_all ( 'li' ,
202
- class_ = 'item' ):
203
- api_name = s_api .find ('a' , class_ = 'token' ).text
204
- sub_api_data_container [api_name ] = {'declaration' : []}
205
- for api_declaration in s_api .find_all ('div' , class_ = 'language' ):
206
- api_declaration_text = ' ' .join (api_declaration .stripped_strings )
207
- sub_api_data_container [api_name ]['declaration' ].append (
208
- api_declaration_text )
201
+ for s_api_group in soup .find_all ('div' , class_ = 'task-group' ):
202
+ for s_api in s_api_group . find_all ( 'li' , class_ = 'item' ):
203
+ api_name = s_api .find ('a' , class_ = 'token' ).text
204
+ sub_api_data_container [api_name ] = {'declaration' : []}
205
+ for api_declaration in s_api .find_all ('div' , class_ = 'language' ):
206
+ api_declaration_text = ' ' .join (api_declaration .stripped_strings )
207
+ sub_api_data_container [api_name ]['declaration' ].append (
208
+ api_declaration_text )
209
209
210
210
211
211
def parse_cmdline_args ():
You can’t perform that action at this time.
0 commit comments