second commit

This commit is contained in:
Александр Геннадьевич Сальный
2022-10-15 21:01:12 +03:00
commit 7caeeaaff5
1329 changed files with 489315 additions and 0 deletions

22
parsehtml.py Normal file
View File

@@ -0,0 +1,22 @@
import re
import os
import logging
def main():
logging.basicConfig(filename='app.log', level=logging.DEBUG)
basePath = "D:\Programming\PythonProgects\PinterestParse\html"
fileForParse = os.path.join(basePath,os.listdir(basePath)[0])
logging.debug(fileForParse)
openedFile = open(fileForParse, 'r')
logging.debug(openedFile.read().decode('cp-1251'))
if __name__ =='__main__':
main()