insert #6
@ -15,6 +15,7 @@ class WPimport:
|
||||
|
||||
def fromFile(self, files):
|
||||
for file in files.split(","):
|
||||
if os.path.exists(file):
|
||||
with open(file, 'r') as f:
|
||||
content = f.read()
|
||||
soup = BeautifulSoup(content, 'html.parser')
|
||||
|
Loading…
x
Reference in New Issue
Block a user