■ ■ ■ ■ ■ ■
maryam/core/util/engines/google.py
| skipped 114 lines |
115 | 115 | | card_xpath_social['card_href'] |
116 | 116 | | ] |
117 | 117 | | } |
| 118 | + | output = {'content': '', 'info': []} |
| 119 | + | if self._first_page == '': |
| 120 | + | return outputs |
118 | 121 | | parser = self.framework.page_parse(self._first_page) |
119 | 122 | | xpath_results = parser.html_fromstring(xpath) |
120 | 123 | | xpath_results2 = parser.html_fromstring(xpath2) |
121 | 124 | | xpath_results3 = parser.html_fromstring(xpath3) |
122 | 125 | | |
123 | | - | output = {'content': '', 'info': []} |
124 | 126 | | |
125 | 127 | | content = parser.html_fromstring('.//div[@class="kno-rdesc"]') |
126 | 128 | | if content: |
| skipped 74 lines |