Загрузить файлы 'src'
This commit is contained in:
parent
d853bf0159
commit
39b12d137a
Binary file not shown.
|
@ -0,0 +1,12 @@
|
||||||
|
import sys
|
||||||
|
from zipfile import ZipFile
|
||||||
|
# from bs4 import BeautifulSoup
|
||||||
|
# from lxml import etree
|
||||||
|
|
||||||
|
|
||||||
|
def reader():
|
||||||
|
files = input("Enter the path to file: ")
|
||||||
|
with ZipFile(files) as book:
|
||||||
|
for row in book.read('2/fb3/body.xml').decode('utf-8').splitlines():
|
||||||
|
opened = open("test.txt", "a")
|
||||||
|
opened.write(row)
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue