Traceback (most recent call last):
File "D:/json/main.py", line 122, in <module>
main()
File "D:/json/main.py", line 120, in main
f.write(json.dumps(data, indent=2, ensure_ascii=False))
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py", line 238, in dumps
**kw).encode(obj)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 202, in encode
chunks = list(chunks)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 430, in _iterencode
yield from _iterencode_list(o, _current_indent_level)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 326, in _iterencode_list
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 406, in _iterencode_dict
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 326, in _iterencode_list
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 406, in _iterencode_dict
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 439, in _iterencode
o = _default(o)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Tag is not JSON serializable
Traceback (most recent call last):
File "D:\json\main.py", line 119, in <module>
main()
File "D:\json\main.py", line 114, in main
data.append(p.run())
File "D:\json\main.py", line 98, in run
'documents':self.get_documents()
File "D:\json\main.py", line 81, in get_documents
with open(d['path'], 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './programs/programma-internatsionalizatsiya/docs/2022-%D0%A2%D0%A0%D0%95%D0%91%D0%9E%D0%92%D0%90%D0%9D%D0%98%D0%AF_%D0%BA_%D0%BF%D0%BE%D0%B4%D0%B3%D0%BE%D1%82%D0%BE%D0%B2%D0%BA%D0%B5_%D1%84%D0%B8%D0%BD%D0%B0%D0%BD%D1%81%D0%BE%D0%B2%D1%8B%D1%85_%D0%BE%D1%82%D1%87%D0%B5%D1%82%D0%BE%D0%B2_%D0%B4%D0%BB%D1%8F_%D0%B4%D0%BE%D0%B3%D0%BE%D0%B2%D0%BE%D1%80%D0%BE%D0%B2,_%D0%B7%D0%B0%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%BD%D1%8B%D1%85_%D0%BF%D0%BE_%D1%82%D0%B8%D0%BF%D0%BE%D0%B2%D0%BE%D0%B9_%D1%84%D0%BE%D1%80%D0%BC%D0%B5_%D0%B2_2022-%D0%A0%D0%B0%D0%B7%D0%B2%D0%B8%D1%82%D0%B8%D0%B5.rtf'
Traceback (most recent call last):
File "D:\json\main.py", line 119, in <module>
main()
File "D:\json\main.py", line 114, in main
data.append(p.run())
File "D:\json\main.py", line 98, in run
'documents':self.get_documents()
File "D:\json\main.py", line 81, in get_documents
with open(d['path'], 'wb') as f:
PermissionError: [Errno 13] Permission denied: './programs/programma-razvitie/'
Traceback (most recent call last):
File "D:\json\main.py", line 118, in <module>
main()
File "D:\json\main.py", line 116, in main
f.write(json.dumps(data, indent=2, ensure_ascii=False))
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\__init__.py", line 238, in dumps
**kw).encode(obj)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 202, in encode
chunks = list(chunks)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 430, in _iterencode
yield from _iterencode_list(o, _current_indent_level)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 326, in _iterencode_list
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 406, in _iterencode_dict
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 326, in _iterencode_list
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 406, in _iterencode_dict
yield from chunks
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 439, in _iterencode
o = _default(o)
File "C:\Users\Руслан\AppData\Local\Programs\Python\Python311\Lib\json\encoder.py", line 180, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Tag is not JSON serializable
Traceback (most recent call last):
File "D:\json\main.py", line 118, in <module>
main()
File "D:\json\main.py", line 113, in main
data.append(p.run())
File "D:\json\main.py", line 96, in run
'contacts':self.get_contact(),
File "D:\json\main.py", line 41, in get_contact
d['email'] = i.find('a').text
AttributeError: 'NoneType' object has no attribute 'text'
Traceback (most recent call last):
File "D:\json\main.py", line 114, in <module>
main()
File "D:\json\main.py", line 109, in main
data.append(p.run())
File "D:\json\main.py", line 93, in run
'documents':self.get_documents()
File "D:\json\main.py", line 80, in get_documents
with open(d['path'], 'wb') as f:
PermissionError: [Errno 13] Permission denied: './programs/programma-razvitie/'