Skip to content
//Reddit Posts Scraper example\\

Top Python posts in r/learnpython, 3 posts

Top posts of the year with their comment threads.

Updated October 21, 2026

Input

The input this example runs Reddit Posts Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Search keywordssearchTerms
python
Max posts per keyword / URLmaxPostsCount
3
Search inside one subredditwithinCommunity
learnpython
Sort search results bysearchSort
Top
Time rangesearchTime
Past year
Scrape comments for each postcrawlCommentsPerPost
Yes
Max comments per postmaxCommentsPerPost
3
.json
{
  "searchTerms": [
    "python"
  ],
  "withinCommunity": "learnpython",
  "searchSort": "top",
  "searchTime": "year",
  "maxPostsCount": 3,
  "crawlCommentsPerPost": true,
  "maxCommentsPerPost": 3
}

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes. The advantage lasts forever.

No credit card. No setup calls.