suurjaak / Skyperious

Skype chat history tool
Other
350 stars 36 forks source link

Difference between html-file of on-line export and command export #126

Closed moi427 closed 3 months ago

moi427 commented 3 months ago

First of all: this is a really a great program to make Skype backups, very happy with it being able to backup the conversations (since april 2017) with my son who lives in the USA!

I first ran the backup on-line via the program (v5.5 on W10), but now I created a batchjob that runs via the scheduler to run sync and backup automatically on a weekly basis. To my surprise there's a difference between the created backup via this batch and when I run it on-line from Skyperious, I haven't been able to find an explanation for this behavior. When running the export on-line, I get all photos and videos in the export html-files (as a kind of thumbnails you can enlarge), but when I run the export via the batchjob there's only a link to those pictures and videos. And yes, the on-line export takes in case of the chats with my son quite some time, but for me that's not a problem at all since it's a treasure to me. Example line in the batch export html-file: "To view this shared photo, go to: https://api.asm.skype.com/v1/objects/xxxxxxxxxxxxxxx/views/imgpsh_fullsize" The link opens properly, but why can't I get the html-file with the photos/videos included like in the on-line export version? If this is intended behavior, perhaps it's possible to include a parameters to chose for the "full version" or this "small version", like [-v {full, small}].

B.t.w. the batchcommands I'm running after the sync: RMDIR "D:\xxx\yyy\zzz\Skyperious\Export from NAME" /S/Q (this to get every time the same directoryname created, it can't be updated) skyperious export D:\xxx\yyy\zzz\Skyperious\Skyperious\SkypeID.main.db -u aaaaa -p bbbbb -t html -o D:\xxx\yyy\zzz\Skyperious (The addition of my -o parameter doesn't have effect, it's just for my clarity).

suurjaak commented 3 months ago

Glad to hear the program is helping people!

(By online export I assume you mean exporting from Skyperious graphical user interface)

Your issue seems to be that the command-line interface is not getting the password to log in to Skype online for downloading the media. The export command does not support giving the password on the command-line directly (and neither the username).

You can see the command-line parameters for export here: https://suurjaak.github.io/Skyperious/help.html#export, relevant ones here are:

  --ask-password        prompt for Skype password on HTML export to download
                        shared media
  --store-password      store entered password in configuration

For bypassing the password prompt, you can run the export once with --ask-password --store-password so that Skyperious stores your password for this database in its configuration file. Or run the graphical interface once, log in to Skype online and check the "Remember password" checkbox - again gets saved in configuration.

(Password is stored in obfuscated form, not quite plain text.)

moi427 commented 3 months ago

Thanks for replying! I probably copied username and password from the sync command I made first, so my mistake. It isn't possible to include username and password also to the export command like the sync command in an update of the program? I'm anyway going to try your solution.

And yes, this program really is very precious to me!

Regards, Jan de Vries

31 mei 2024 19:58:22 Erki Suurjaak @.***>:

Glad to hear the program is helping people!

(By online export I assume you mean exporting from Skyperious graphical user interface)

Your issue seems to be that the command-line interface is not getting the password to log in to Skype online for downloading the media. The export command does not support giving the password on the command-line directly (and neither the username).

You can see the command-line parameters for export here: https://suurjaak.github.io/Skyperious/help.html#export, relevant ones here are:

  • --ask-password prompt for Skype password on HTML export to download shared media --store-password store entered password in configuration
  • For bypassing the password prompt, you can run the export once with --ask-password --store-password so that Skyperious stores your password for this database in its configuration file. Or run the graphical interface once, log in to Skype online and check the "Remember password" checkbox - again gets saved in configuration.

(Password is stored in obfuscated form, not quite plain text.)

— Reply to this email directly, view it on GitHub[https://github.com/suurjaak/Skyperious/issues/126#issuecomment-2142733513], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AW2SYDWGBX6Q7MXGPTICKHLZFC23XAVCNFSM6AAAAABITCVBRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBSG4ZTGNJRGM]. You are receiving this because you authored the thread. [Tracking afbeelding][https://github.com/notifications/beacon/AW2SYDQMZOLMGNJIVBX3FQLZFC23XA5CNFSM6AAAAABITCVBRSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT7W6CMS.gif]

suurjaak commented 3 months ago

It isn't possible to include username and password also to the export command like the sync command in an update of the program?

At the moment I'm not even sure why I did not include this option in the first place. Maybe I thought that export already had too many arguments.

I will make the password arguments the same across different commands in the next released version.

moi427 commented 3 months ago

Great! In the meantime: have a nice weekend.

1 jun. 2024 16:33:16 Erki Suurjaak @.***>:

It isn't possible to include username and password also to the export command like the sync command in an update of the program?

At the moment I'm not even sure why I did not include this option in the first place. Maybe I thought that export already had too many arguments.

I will make the login arguments the same across different commands in the next released version.

— Reply to this email directly, view it on GitHub[https://github.com/suurjaak/Skyperious/issues/126#issuecomment-2143469275], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AW2SYDXWFX4EBEIT6I5LF5DZFHLSPAVCNFSM6AAAAABITCVBRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTGQ3DSMRXGU]. You are receiving this because you authored the thread. [Tracking afbeelding][https://github.com/notifications/beacon/AW2SYDQ3LKRA3ZIQ2H4YK5TZFHLSPA5CNFSM6AAAAABITCVBRSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTT7YK7NW.gif]

suurjaak commented 3 months ago

The newly released Skyperious v5.6 now supports --password argument for the export command.

moi427 commented 3 months ago

I downloaded and installed 5.6 to test issue #126. V5.6 indeed changed, but not the way expected: now both running the command export as exporting from Skyperious graphical user interface 5.6 only export the links, not the photo or video itself. In 5.5 exporting from Skyperious graphical user interface all photos and videos were included, only when using the export batch command those links were included. So it looks like the update was changed the wrong way around, now resulting in the export via the Skyperious graphical user interface batch command the same as exporting via the batch command instead of the other way around from 5.5. I presume that was not the way as intended.

A small example (I luckily have the backup of 5.5 via exporting from Skyperious graphical user interface), the database is the same since no chats since the shown date of 31-05-2024. 1 – 5.5 via exporting from Skyperious graphical user interface: @. 2 – 5.6 via exporting from Skyperious graphical user interface, which now is the same as exporting via the batch command in as well as 5.5 as 5.6 @. I think the intention was that exporting via the batch command in 5.6 would give the same result as via exporting from Skyperious graphical user interface

I re-installed v5.5 and ran the via export from Skyperious graphical user interface, but that now gives the same result as -2-, so now I somehow can’t get the result including the photos and videos anymore.

Regards, Jan de Vries

Van: Erki Suurjaak @.> Verzonden: zondag 2 juni 2024 20:38 Aan: suurjaak/Skyperious @.> CC: moi427 @.>; Author @.> Onderwerp: Re: [suurjaak/Skyperious] Difference between html-file of on-line export and command export (Issue #126)

The newly released Skyperious v5.6 now supports --password argument for the export command.

— Reply to this email directly, view it on GitHubhttps://github.com/suurjaak/Skyperious/issues/126#issuecomment-2143981347, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW2SYDQTCL2PQL4D5BPUJC3ZFNRATAVCNFSM6AAAAABITCVBRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHE4DCMZUG4. You are receiving this because you authored the thread.Message ID: @.**@.>>

moi427 commented 3 months ago

Have to add this: after logging in Skype into the Skyperious graphical user interface 5.5 the export works like it was (was also strange since 5.5 wasn’t changed). My login was gone what gave the wrong result: sorry for the disturbance, this was entirely my mistake! B.t.w. exporting via Skyperious graphical user interface 5.5 at this moment takes about 21 minutes, that’s also why I’m trying it by the batch commands.

After installing 5.6 again plus logging in into my Skype via the Skyperious graphical user interface plus exporting still went fine including all photos and videos (now even in only 9 minutes, might be because of a cache). The batch export now also properly exports the photos and videos too.

So once again sorry for MY mistake testing the update: it works perfect and thank you for your very fast addition to this export command!!

Van: Jan de Vries Verzonden: maandag 3 juni 2024 10:14 Aan: suurjaak/Skyperious @.***> Onderwerp: RE: [suurjaak/Skyperious] Difference between html-file of on-line export and command export (Issue #126)

I downloaded and installed 5.6 to test issue #126. V5.6 indeed changed, but not the way expected: now both running the command export as exporting from Skyperious graphical user interface 5.6 only export the links, not the photo or video itself. In 5.5 exporting from Skyperious graphical user interface all photos and videos were included, only when using the export batch command those links were included. So it looks like the update was changed the wrong way around, now resulting in the export via the Skyperious graphical user interface batch command the same as exporting via the batch command instead of the other way around from 5.5. I presume that was not the way as intended.

A small example (I luckily have the backup of 5.5 via exporting from Skyperious graphical user interface), the database is the same since no chats since the shown date of 31-05-2024. 1 – 5.5 via exporting from Skyperious graphical user interface: @. 2 – 5.6 via exporting from Skyperious graphical user interface, which now is the same as exporting via the batch command in as well as 5.5 as 5.6 @. I think the intention was that exporting via the batch command in 5.6 would give the same result as via exporting from Skyperious graphical user interface

I re-installed v5.5 and ran the via export from Skyperious graphical user interface, but that now gives the same result as -2-, so now I somehow can’t get the result including the photos and videos anymore.

Regards, Jan de Vries

Van: Erki Suurjaak @.**@.>> Verzonden: zondag 2 juni 2024 20:38 Aan: suurjaak/Skyperious @.**@.>> CC: moi427 @.**@.>>; Author @.**@.>> Onderwerp: Re: [suurjaak/Skyperious] Difference between html-file of on-line export and command export (Issue #126)

The newly released Skyperious v5.6 now supports --password argument for the export command.

— Reply to this email directly, view it on GitHubhttps://github.com/suurjaak/Skyperious/issues/126#issuecomment-2143981347, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AW2SYDQTCL2PQL4D5BPUJC3ZFNRATAVCNFSM6AAAAABITCVBRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBTHE4DCMZUG4. You are receiving this because you authored the thread.Message ID: @.**@.>>