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

How do I get a Submission object given a post's title/url/id using the Python wrapper? #18

Closed
john2x opened this issue Aug 8, 2011 · 4 comments

Comments

@john2x
Copy link
Contributor

john2x commented Aug 8, 2011

There doesn't seem to be a .get_submission(id='t3_xxxxx'). I'm trying to add it myself but I'm having a hard time figuring out how.

It would b really useful, I think. Right now the only way to get submissions is by either of the get_hot, get_top, etc. methods, which doesn't offer too much control.

Thanks in advance. :)

@tmelz
Copy link
Contributor

tmelz commented Aug 8, 2011

BAM! done. what else ya' got?

fixed by commit: 8039e71

@tmelz tmelz closed this as completed Aug 8, 2011
@john2x
Copy link
Contributor Author

john2x commented Aug 8, 2011

You are awesome. Thanks!

@bcornw2
Copy link

bcornw2 commented Jun 24, 2020

Hello,

I am having a hard time finding documentation on how to use the .get_submission_by_id.

My main goal is to be able to find the title of a submission from the ID. I was planning on using the feature above to get an instance of Submission, and getting the title that way, but I can't get .get_submission_by_id('39dnwge') to work. I've tried a few variations as well.

Any advice?

@PythonCoderAS
Copy link
Contributor

This is an old post from 2011 about a version of the client that has since not been in development for at least 4 years.

In modern PRAW, use Reddit.submission(id="39dnwge")

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

4 participants