kerchen / kerchen/export_gr2evernote

Support google's labels

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
64
Forks
10
PR merge metrics
No merged PRs in 30d

Description

I heavily leveraged google's lables to help find items since reader's search never really worked. I tweaked export2enex to add support if you or anyone is interested.

if notebook:
subject = subject + " @" + notebook
if 'categories' in s.keys():
for i in range(len(s["categories"])):
if s["categories"][i].lower()[0:32] == "user/" + GOOGLE_USER_SID + "/label/":
#user defined labels
tags += "" + s["categories"][i][32:].encode(char_encoding, 'replace') + ""
if s["categories"][i].lower()[0:26] != "user/" + GOOGLE_USER_SID + "/":
#categories which the feeds could autopopulate
tags += "zAuto " + s["categories"][i].encode(char_encoding, 'replace') + ""
.
.
.
if updated_datetime:
msg_body = msg_body + "" + updated_datetime + ""
msg_body = msg_body + tags

Probably to make the code more production ready, a flag for GOOGLE_USER_SID and whether the user wants to include the autopopulated categories would be good.

Thanks for your great work. This was on my back burner and even though Python isn't my daily go to language, this script worked perfectly!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading export2enex and trace how Google Reader categories are converted into Evernote tags. Determine how GOOGLE_USER_SID and inclusion of auto-populated categories should be configured, then verify that an export preserves the requested user labels and categories.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.