description
28 | """ 29 | for i in ancher: 30 | text = i.find('h3').contents[0] 31 | link = i.find('a',{'class':'w-gl__result-title result-link'})['href'] 32 | description = i.find('p',{'class':'w-gl__description'}).contents[0] 33 | self.results[str(page_number)].append({'title':text,'link':link,'description':description}) 34 | except Exception as e: 35 | print(e) 36 | """ 37 | s = StartPage() 38 | s.search("Hello World") 39 | print(s.results) 40 | """ 41 | return self.results 42 | --------------------------------------------------------------------------------