Refactoring #1

Merged
SiberiaBreadFactory merged 12 commits from a2p1k02/fb3test:master into master 2021-01-01 18:49:16 +00:00
4 changed files with 13 additions and 0 deletions
Showing only changes of commit 39b12d137a - Show all commits

BIN
src/1.fb3 Normal file

Binary file not shown.

BIN
src/__init__.py Normal file

Binary file not shown.

12
src/fb3.py Normal file
View File

@ -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)

1
src/test.txt Normal file

File diff suppressed because one or more lines are too long