# Collect the top Python posts from the past week

**Use case:** 

Get this week’s top public posts from r/Python with scores, comments, links, media and text.

## Input

```json
{
  "mode": "subreddit",
  "subreddit": "Python",
  "postUrl": "https://www.reddit.com/r/python/comments/abc123/example_post/",
  "username": "example_user",
  "searchQuery": "machine learning",
  "searchSubreddit": "python",
  "sort": "top",
  "timeFilter": "week",
  "maxPosts": 10,
  "maxComments": 50,
  "includeComments": false,
  "expandMoreComments": true,
  "sinceDate": "2025-01-01",
  "outputFormat": "markdown",
  "includeImages": true,
  "delaySeconds": 0.5,
  "debugMode": false
}
```

## Output

```json
{
  "title": {
    "label": "Title",
    "format": "text"
  },
  "selftext": {
    "label": "Post Text",
    "format": "text"
  },
  "body": {
    "label": "Comment Text",
    "format": "text"
  },
  "author": {
    "label": "Author",
    "format": "text"
  },
  "subreddit": {
    "label": "Subreddit",
    "format": "text"
  },
  "score": {
    "label": "Score",
    "format": "number"
  },
  "num_comments": {
    "label": "Comments",
    "format": "number"
  },
  "created_utc": {
    "label": "Posted",
    "format": "date"
  },
  "permalink": {
    "label": "Permalink",
    "format": "link"
  },
  "url": {
    "label": "URL",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Reddit Scraper - Posts, Comments, Users & Search](https://apify.com/benthepythondev/reddit-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/benthepythondev/reddit-scraper) to learn more, explore other use cases, and run it yourself.