Today, a climb up watercress (crawling IMDb + selenium analog watercress landing)

1. IMDb - selenium

analysis


  • The use of selenium simulate a mouse drop-down
  • Each time information is often seen several movies

Source

from selenium import webdriver
import time

url = 'https://movie.douban.com/typerank?type_name=%E5%89%A7%E6%83%85&type=11&interval_id=100:90&action='
driver = webdriver.Chrome()
driver.get(url)

# 向下滚动10000像素
js = 'document.body.s

Guess you like

Origin blog.csdn.net/qq_29339467/article/details/105341444