#-*- coding:utf-8 -*-
from bs4 import BeautifulSoup
from selenium import webdriver


driver=webdriver.Chrome()
driver.get('https://www.zhihu.com/api/v4/members/qing-shi-yong-zhen-shi-xing-ming/followees?offset=0&limit=20')
html = driver.page_source

soup = BeautifulSoup(html, 'lxml')
cc = soup.select('pre')[0]
print cc.string

发表评论

邮箱地址不会被公开。 必填项已用*标注