![Best Reddit Scraper avatar](https://images.apifyusercontent.com/Yu3nTXEs6g0f9KsErj3RmI5dx1Lc_Tg3v-jTduNIUvQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS95QzZ2UHBvM1hnVUF5emNITy91Mmtma2NXZlllVHZBR2Q2Mi1yZWRkaXQtbG9nby1yZWRkaXQtaWNvbi10cmFuc3BhcmVudC1mcmVlLXBuZy53ZWJw.webp)
This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?
See alternative Actors![Best Reddit Scraper](https://images.apifyusercontent.com/Yu3nTXEs6g0f9KsErj3RmI5dx1Lc_Tg3v-jTduNIUvQ/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS95QzZ2UHBvM1hnVUF5emNITy91Mmtma2NXZlllVHZBR2Q2Mi1yZWRkaXQtbG9nby1yZWRkaXQtaWNvbi10cmFuc3BhcmVudC1mcmVlLXBuZy53ZWJw.webp)
Best Reddit Scraper
Scrape posts from a Subreddit or scrape comments from a post.
cannot read the property
Closed
2023-12-23T11:08:51.723Z ACTOR: Pulling Docker image of build PoOssD7NSCutURipq from repository.
2023-12-23T11:08:52.300Z ACTOR: Creating Docker container.
2023-12-23T11:08:52.474Z ACTOR: Starting Docker container.
2023-12-23T11:08:57.455Z INFO System info {"apifyVersion":"3.1.13","apifyClientVersion":"2.8.4","crawleeVersion":"3.6.2","osType":"Linux","nodeVersion":"v16.20.2"}
2023-12-23T11:08:57.584Z input {
2023-12-23T11:08:57.586Z subRedditURL: ']8;;https://www.reddit.com/search/?q=indiaelection2023&type=link'\https://www.reddit.com/search/?q=indiaelection2023&type=link'
2023-12-23T11:08:57.587Z }
2023-12-23T11:08:57.588Z subRedditURL https://www.reddit.com/search/?q=indiaelection2023&type=link
2023-12-23T11:08:57.589Z redditPostURL undefined
2023-12-23T11:08:58.489Z error in getSubRedditPosts posts is not iterable (cannot read property undefined)
2023-12-23T11:08:58.519Z /usr/src/app/node_modules/ow/dist/index.js:36
2023-12-23T11:08:58.520Z (0, test_1.default)(value, labelOrPredicate, predicate);
2023-12-23T11:08:58.521Z ^
2023-12-23T11:08:58.522Z
2023-12-23T11:08:58.523Z ArgumentError: Expected data
to be of type object
but received type undefined
2023-12-23T11:08:58.524Z at ow (/usr/src/app/node_modules/ow/dist/index.js:36:24)
2023-12-23T11:08:58.524Z at Dataset.pushData (/usr/src/app/node_modules/@crawlee/core/storages/dataset.js:199:26)
2023-12-23T11:08:58.525Z at Actor.pushData (/usr/src/app/node_modules/apify/actor.js:529:24)
2023-12-23T11:08:58.526Z at processTicksAndRejections (node:internal/process/task_queues:96:5)
2023-12-23T11:08:58.527Z at async file:///usr/src/app/src/main.js:296:3 {
2023-12-23T11:08:58.528Z validationErrors: Map(1) {
2023-12-23T11:08:58.529Z 'data' => Set(1) {
2023-12-23T11:08:58.529Z 'Expected data
to be of type object
but received type undefined
'
2023-12-23T11:08:58.530Z }
2023-12-23T11:08:58.531Z }
2023-12-23T11:08:58.532Z }
Adrian | The Web Scraping Guy (adrian_horning)
Will Look into it
Adrian | The Web Scraping Guy (adrian_horning)
Looks like the issue is you're entering a search url (https://www.reddit.com/search/?q=indiaelection2023&type=link%27\https://www.reddit.com/search/?q=indiaelection2023&type=link%27) This scraper only scrapes all comments in a post, or all post titles in a subreddit.