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

Private subreddit posts? #6

Open
joeisdead opened this issue Nov 22, 2021 · 2 comments
Open

Private subreddit posts? #6

joeisdead opened this issue Nov 22, 2021 · 2 comments

Comments

@joeisdead
Copy link

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.

@jdxgfty
Copy link

jdxgfty commented Feb 18, 2022

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

@siggibiggi
Copy link

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.

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

3 participants