Skip to content

added functionality for downloading articles from multiple urls and some refactoring#27

Open
ntsvetanov wants to merge 9 commits into
adimitrova:masterfrom
ntsvetanov:master
Open

added functionality for downloading articles from multiple urls and some refactoring#27
ntsvetanov wants to merge 9 commits into
adimitrova:masterfrom
ntsvetanov:master

Conversation

@ntsvetanov
Copy link
Copy Markdown
Contributor

No description provided.

@adimitrova
Copy link
Copy Markdown
Owner

adimitrova commented Feb 24, 2023

@ntsvetanov are you still interested into merging this? If so, i will test it out and review it, Apologies but i did not see the PR and the project is/was kind of stale. I am up for bring it back on track though :)

@ntsvetanov
Copy link
Copy Markdown
Contributor Author

Sure, if you want I can think for more improvements :)

Comment thread epubify/epubify.py Outdated
else:
if "url" in config["article"].keys():
if from_file:
self.url = config["article"]["txtPath"]
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we keep snake_case for the keys, please? :)

Comment thread epubify/utils/utils.py
def append_keyvalue_to_json_file(file_path, key, value):
# Modify the original config file with pocket auth code once authenticated, to avoid re-authentication
with open(file_path, "r") as cfi:
with open(file_path, "r", encoding="utf-8") as cfi:
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point!

Comment thread epubify/main.py
access_code = None
#TODO save access code in json file and read it from there

pocket_client = Pocket(EPUBIFY_KEY, REDIRECT_URL, access_code)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lovely, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants