quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
1.99k stars 882 forks source link

Script to convert exported bookmarks to csv #1177

Closed ahmedre closed 2 years ago

ahmedre commented 5 years ago

This was requested via email - but if we can provide a script (or a small website?) so that people can easily upload Quran for Android json files and have them output as csv instead would be useful.

murtraja commented 5 years ago

@ahmedre , We could spin up a server that does this conversion, but I wanted to know, shouldn't this be done by the App itself? So, if I wanted to get CSV, I have to first export the bookmarks, then upload them and download the CSV. Instead, wouldn't it be more convenient if the App could export it in CSV itself in addition to JSON format?

ahmedre commented 5 years ago

that's true - the only reason i didn't think to put it in the app directly is because i've only seen one person request this so far (and the default format is json which is easy to parse and i think should be shared with the iOS app (though not sure if it is or not)).

murtraja commented 5 years ago

In that case, I can run a server on Heroku which does this. Do you have a language preference for the same?

I am asking this because in the future we might end up merging it with Quran.com backend.

Also, can you share the CSV format in which the output is expected (or should I plainly spit out CSV from JSON)?

ahmedre commented 5 years ago

i don't think it has to be a service - i just want to point people to "use this to convert from json to csv format" if someone asks - so a simple script in any language would do the trick

murtraja commented 5 years ago

@ahmedre, I checked on my iPhone5, I couldn't find any export bookmarks option. However the bookmarks tab correctly shows three kinds of bookmark - Page bookmarks, Ayah bookmarks and Recent pages. (there is no concept of tag)

ahmedre commented 5 years ago

oh i didn't realize there aren't tags on the iOS app yet. i guess the hope is that the files would be shareable between both apps once the iOS app supports this.

MahmoudMabrok commented 4 years ago

i don't think it has to be a service - i just want to point people to "use this to convert from json to csv format" if someone asks - so a simple script in any language would do the trick

is it still open?

weekmo commented 3 years ago

Is it still open?

ozbek commented 3 years ago

Salam.

Yes, please. Issues with PRs Welcome tag are open to anyone wishing to contribute.

jibraniqbal666 commented 2 years ago

Salam @ahmedre bhai, I worked with you in Careem and i would love to contribute in this. What if we add directly export CSV in the app?

ahmedre commented 2 years ago

wa3laikum alsalam @jibraniqbal666 bhai, nice to hear from you - sure, as long as the PR isn't in Flutter 😂 there is an export feature already that exports json so maybe we can just have one option to export csv and one to export json when you tap the export button? walsalam 3alaikum

jibraniqbal666 commented 2 years ago
image

Came up with this schema i will pull up PR, it's just export not import. :) @ahmedre

ahmedre commented 2 years ago

jazakumAllah khairan Jibran - merged via #1946