File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ async def get_msl_context(
6868
6969 for field in data_response .find_all (name = "input" ):
7070 if isinstance (field , bs4 .Tag ):
71- if field .get ("name" ) and field .get ("value" ):
71+ if field .get ("type" ) in ["submit" , "image" , "button" ]:
72+ continue
73+
74+ if field .get ("name" ) and field .get ("value" ) is not None :
7275 data_fields [str (field .get ("name" ))] = str (field .get ("value" ))
7376
7477 for cookie in field_data .cookies :
@@ -131,6 +134,7 @@ async def fetch_report_url_and_cookies(
131134 )
132135 if not report_viewer_div or report_viewer_div .text .strip () == "" :
133136 print ("Failed to load the reports." )
137+ print (soup )
134138 print (report_viewer_div )
135139 raise ValueError ("Failed to load the reports." )
136140
You can’t perform that action at this time.
0 commit comments