156 |
157 |
157 def __createSoup(self): |
158 def __createSoup(self): |
158 """ |
159 """ |
159 Private method to get a BeaitifulSoup object with our HTML text. |
160 Private method to get a BeaitifulSoup object with our HTML text. |
160 """ |
161 """ |
161 from bs4 import BeautifulSoup |
|
162 |
|
163 self.__soup = BeautifulSoup(BeautifulSoup(self.__html).prettify()) |
162 self.__soup = BeautifulSoup(BeautifulSoup(self.__html).prettify()) |
164 |
163 |
165 def __getTags(self): |
164 def __getTags(self): |
166 """ |
165 """ |
167 Private method to extract all tags of the HTML text. |
166 Private method to extract all tags of the HTML text. |