Skip to content

[Config Question][Reddit] How to only download comment media from the post author? #8228

@Ikkoru

Description

@Ikkoru

I had assumed it would be something easy like twitter's "image-filter": "author is user",, but after looking at a reddit post's JSON I can't figure out how to do that.
The JSON of the comment's author looks like this:

	"comment": {
        "replies": {
          "data": {
            "children": [
              {
                "data": {
                  "replies": {
                    "data": {
                      "children": [
                        {
                          "data": {
                            "replies": {
                              "data": {
                                "children": [
                                  {
                                    "data": {
                                      "author": "Dangthing",
                                    },
...etc.

The chain can be arbitrarily long, and unfortunately I don't know enough about python expressions to figure this out.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions