Reddit Scraper Lite avatar
Reddit Scraper Lite
Try for free

Pay $4.00 for 1,000 results

View all Actors
Reddit Scraper Lite

Reddit Scraper Lite

trudax/reddit-scraper-lite
Try for free

Pay $4.00 for 1,000 results

Pay Per Result, unlimited Reddit web scraper to crawl posts, comments, communities, and users without login. Limit web scraping by number of posts or items and extract all data in a dataset in multiple formats.

The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn mode

Node.js

Python

curl

1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7  "startUrls": [
8    {
9      "url": "https://www.reddit.com/r/pasta/comments/vwi6jx/pasta_peperoni_and_ricotta_cheese_how_to_make/"
10    }
11  ],
12  "maxItems": 10,
13  "maxPostCount": 10,
14  "maxComments": 10,
15  "maxCommunitiesCount": 2,
16  "maxUserCount": 2,
17  "scrollTimeout": 40,
18  "proxy": {
19    "useApifyProxy": true,
20    "apifyProxyGroups": [
21      "RESIDENTIAL"
22    ]
23  }
24}
25EOF
26
27# Run the Actor using an HTTP API
28# See the full API reference at https://docs.apify.com/api/v2
29curl "https://api.apify.com/v2/acts/trudax~reddit-scraper-lite/runs?token=$API_TOKEN" \
30  -X POST \
31  -d @input.json \
32  -H 'Content-Type: application/json'
Developer
Community logoMaintained by Community
Actor metrics
  • 276 monthly users
  • 87.6% runs succeeded
  • 0.0 days response time
  • Created in Jun 2020
  • Modified 10 days ago

You might also like these Actors