import requests
import re
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)\
     AppleWebKit/537.36 (KHTML, like Gecko)\
      Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063'
}
r = requests.get("https://www.zhihu.com/explore", headers=headers)
r.encoding = 'utf-8'
pattern = re.compile('explore-feed.*?question_link.*?>(.*?)</a>', re.S)
titles = re.findall(pattern, r.text)
print(titles)
