代码如下。
driver = webdriver.Chrome(chromedriver_path) #webdriver path
driver.get('https://webtoon.kakao.com/content/%EB%B0%94%EB%8B%88%EC%99%80-%EC%98%A4%EB%B9%A0%EB%93%A4/1781') #website access
time.sleep(2)
driver.execute_script("window.scrollTo(0, 900)") #scroll down
time.sleep(1)
Run Code Online (Sandbox Code Playgroud)
但是,页面不会滚动。
我怎样才能滚动?
使用 jupyter Notebook/python3
我想使用带有标记的折线,但它不起作用
map = folium.Map(location=[37.4601908, 126.4406957])
for index,lat in enumerate(place_lat):
folium.Marker([lat,
place_lng[index]],
popup=('patient3 \n 74contacts'),
icon = folium.Icon(color='green',icon='plus')).add_to(map)
folium.Polyline(color='red').add_to(map)
map
Run Code Online (Sandbox Code Playgroud)
我以为Polyline在大叶里
但错误说
AttributeError: module 'folium' has no attribute 'Polyline'
Run Code Online (Sandbox Code Playgroud)
如何使用折线?