这是我的代码import urllib2 url = 'https://www.crummy.com/softwareMacintosh; Intel Mac OS X 10_11_5)'request = urllib2.Request(url,headers = headers)
response
我正在尝试创建一个函数,它将从给定的URL提取元关键字并返回它。但是,无论我向它传递什么URL,它都会失败。def GetKeywords(url): keywords = soup.findAll('meta', attrs={'name':re.compileCheck to see if that page has any meta keywords to begin with
print &