Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claims to export all deleted comments but only exports a few #20

Open
DiogenesOfMiami opened this issue Jan 26, 2021 · 5 comments
Open

Comments

@DiogenesOfMiami
Copy link

Every time I run PDS it only exports a fraction of the comments it deletes and claims to export. I open the .csv and the vast majority of the comments it claimed to export aren't there:

https://i.imgur.com/Q0wL8Ma.png

@JoshBoehm
Copy link

Had a similar issue (just exporting, not deleting) where the script said a few thousand exported, but the CSV stops after 95 records for me.

@fwn
Copy link

fwn commented Apr 8, 2021

I used PowerDeleteSuite just for backup. Excellent tool! Anyway regarding this bug: The export button href actually does contain all the data it claims. It's just that apparently, once clicked, only the first 32kb of the data URI actually get saved in the file. I tested this in the new MS Edge & Firefox.

As a workaround you can right-click the button and select "copy link". If you then paste your clipboard into a text file, it is the full sized export you wanted. This screws with the formatting, but that can be fixed by deleting the first 28 characters:

data:text/csv;charset=utf-8,

and running a urldecode over the rest of it. Which I did locally with a small PHP script like this:

file_put_contents('workingoutput.csv',urldecode(file_get_contents('rawinput.txt')));

One small caveat: In my case it gathered only the first year of comments (around a megabyte in my case), but that might be a reddit API restriction, I'm not sure.

@Okxa
Copy link

Okxa commented Apr 20, 2023

I'll just add that on some browsers even copying the link adress might not copy it all.

However if you inspect the button element, the link elements' href parameter seems to have all the data, so you can copy it from it with browser devtools, by double clicking the href value to select all and copy with Ctrl+C.

Also that data is not in URL encoded format.

@mbirth
Copy link

mbirth commented Jun 7, 2023

Can you check whether it stops at a # for you? Because then it might be related to my issue #34.

@RenaKunisaki
Copy link

RenaKunisaki commented Jun 30, 2023

Just ran into the same problem. The last line is:

"","\

which definitely feels like a formatting issue.

If there are issues with huge data URIs, it seems like a much better method would be to add a big text field to the UI and add the data to it as it's being processed. That would avoid these problems, plus letting you copy partial results if the process gets interrupted.

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

No branches or pull requests

6 participants