redditPostArchiver icon indicating copy to clipboard operation
redditPostArchiver copied to clipboard

Private subreddit posts?

Open joeisdead opened this issue 4 years ago • 2 comments

Trying to archive a saved post from a private community using archiver.py but I'm getting

prawcore.exceptions.Forbidden: received 403 HTTP response

The account I've linked to has permission to view the post but for some reason it's not working

Can someone please help me out? I tried it with a public post and it worked fine.

joeisdead avatar Nov 22 '21 20:11 joeisdead

I managed to get it working by providing an username and password to PRAW.

In archiver.py, change this line:

r = praw.Reddit(client_id=credentials['client_id'],
                client_secret=credentials['client_secret'],
                user_agent=credentials['user_agent'])

to this:

r = praw.Reddit(client_id=credentials['client_id'],
                client_secret=credentials['client_secret'],
                user_agent=credentials['user_agent'],
                username=credentials['username'],
                password=credentials['password'])

Then add this to your credentials.yml file:

username: your_username
password: your_password

jdxgfty avatar Feb 18 '22 14:02 jdxgfty

I managed to get it working by providing an username and password to PRAW.

In archiver.py, change this line:

r = praw.Reddit(client_id=credentials['client_id'],
                client_secret=credentials['client_secret'],
                user_agent=credentials['user_agent'])

to this:

r = praw.Reddit(client_id=credentials['client_id'],
                client_secret=credentials['client_secret'],
                user_agent=credentials['user_agent'],
                username=credentials['username'],
                password=credentials['password'])

Then add this to your credentials.yml file:

username: your_username
password: your_password

yo, you absolute beauty! I was tryna figure out how to not just have [removed] for threads of mine that were deleted by moderators despite me still being able to view them perfectly fine. This solution also worked for that. Created an account specifically to thank you. And while we're at it, thank you guy that made this project. It's exactly what I was looking for. Just a simple tool that gives me slick looking recreations of threads instead of just a bunch of .txt files.

siggibiggi avatar Jan 27 '23 06:01 siggibiggi