ProjectWeb/Html5ToJsConverter.py

branch
eric7
changeset 50
19050d56699d
parent 49
1910859bbacf
child 52
815847f3d404
equal deleted inserted replaced
49:1910859bbacf 50:19050d56699d
10 import datetime 10 import datetime
11 import getpass 11 import getpass
12 import os 12 import os
13 import re 13 import re
14 14
15 from bs4 import BeautifulSoup
15 from PyQt6.QtCore import QObject 16 from PyQt6.QtCore import QObject
16 from PyQt6.QtWidgets import QDialog 17 from PyQt6.QtWidgets import QDialog
17 18
18 from .Html5ToJsConverterParameterDialog import Html5ToJsConverterParameterDialog 19 from .Html5ToJsConverterParameterDialog import Html5ToJsConverterParameterDialog
19 20
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.

eric ide

mercurial