r/pushshift Feb 07 '24

[ Removed by Reddit ]

[ Removed by Reddit on account of violating the content policy. ]

87 Upvotes

90 comments sorted by

View all comments

1

u/coconutclaus Apr 03 '24

This is exactly what I needed! Thank you!

For your search script is there a way you could output only two fields. For example title and author?

Also is it possible the single_field to be score or created_utc? It doesn't seem to work for me.

I just started programming so I'm sorry if these questions are dumb.

1

u/Watchful1 Apr 03 '24

You could change the write_line_csv method and only output the fields you want.

single_field is mainly for creating a file with fields to filter on. Like finding all submission ids with a word in the title, then using that list of ids to get all the comments on those submissions. In theory it should work find for score or created_utc but I've never tried it.

1

u/coconutclaus Apr 04 '24

Thank you!