MCPcopy
hub / github.com/wistbean/learn_python3_spider / get_source

Function get_source

ikun_basketball.py:99–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97
98
99def get_source():
100 WAIT.until(EC.presence_of_element_located(
101 (By.CSS_SELECTOR, '#all-list > div.flow-loader > div.filter-wrap')))
102
103 html = browser.page_source
104 soup = BeautifulSoup(html, 'lxml')
105 print('到这')
106
107 save_to_excel(soup)
108
109
110def main():

Callers 2

searchFunction · 0.85
next_pageFunction · 0.85

Calls 1

save_to_excelFunction · 0.70

Tested by

no test coverage detected