Untitled - Posted on February Sun 21st 3:17 AM (Never Expires) - Format: python
  1. import requests
  2.  
  3. from bs4 import BeautifulSoup
  4. for x in range(10):
  5.     url = 'https://movie.douban.com/top250?start=' + str(x*25) + '&filter='
  6.     res = requests.get(url)
  7.     bs = BeautifulSoup(res.text, 'html.parser')
  8.     for i in bs.find_all('li'):
  9.         tag_hum=bs.find_all('em',class_="").text
  10.         print(tag_hum.status_code)

New Paste

Paste Options

Recent Pastes

4 days ago

Untitled

4 days ago

Untitled

38 days ago

Untitled

43 days ago

Untitled

43 days ago

Untitled

48 days ago

Hack_14578989

48 days ago

Hack_14578989

56 days ago

Untitled

59 days ago

Untitled

59 days ago

Untitled