vartanbeno / go-reddit

Go library for accessing the Reddit API.
Other
306 stars 84 forks source link

Add support for fetching `media_metadata` and `gallery_data` #17

Closed bocanada closed 1 year ago

bocanada commented 3 years ago

Changelog:

simius commented 3 years ago

Would this allow us to fetch the media on a post, e.g. images, videos?

bocanada commented 3 years ago

Would this allow us to fetch the media on a post, e.g. images, videos?

Yep!

simius commented 3 years ago

Would this allow us to fetch the media on a post, e.g. images, videos?

Yep!

Could you include an example of how to use it? I want to test using your branch while this PR is in review

bocanada commented 3 years ago

Would this allow us to fetch the media on a post, e.g. images, videos?

Yep!

Could you include an example of how to use it? I want to test using your branch while this PR is in review

The Reddit API is a big pile of 💩 so I don't know if there are better ways of doing this: https://gist.github.com/Bocanada/eca3c3cd4564696ed56acad4b678661d I think you could also get Reddit videos with just post.Url, but I never tried it

Kardbord commented 2 years ago

Any movement on this? This would be an awesome feature to have! 😄