141 |
142 |
142 def __createSoup(self): |
143 def __createSoup(self): |
143 """ |
144 """ |
144 Private method to get a BeaitifulSoup object with our HTML text. |
145 Private method to get a BeaitifulSoup object with our HTML text. |
145 """ |
146 """ |
146 from bs4 import BeautifulSoup |
|
147 |
|
148 self.__soup = BeautifulSoup(BeautifulSoup(self.__html).prettify()) |
147 self.__soup = BeautifulSoup(BeautifulSoup(self.__html).prettify()) |
149 |
148 |
150 def __getClasses(self): |
149 def __getClasses(self): |
151 """ |
150 """ |
152 Private method to extract all classes of the HTML text. |
151 Private method to extract all classes of the HTML text. |