#-*- coding: utf-8 -*-
import urllib.request
import re
from _io import open
def yunpan_search():
url = “https://www.zhihu.com/explore”
req = urllib.request.request(url, headers = {
‘connection’: ‘keep-alive’,
‘accept’: ‘text/html, application/xhtml+xml, */*’,
‘accept-language’: ‘en-us,en;q=0.8,zh-hans-cn;q=0.5,zh-hans;q=0.3’,
‘user-agent’: ‘mozilla/5.0 (windows nt 6.3; wow64; trident/7.0; rv:11.0) like gecko’
})
opener = urllib.request.urlopen(req)
html = opener.read()
html = html.decode(‘utf-8’)
rex = ‘(?