Reddit Scraper avatar
Reddit Scraper
Try for free

1 day trial then $45.00/month - No credit card required now

View all Actors
Reddit Scraper

Reddit Scraper

trudax/reddit-scraper
Try for free

1 day trial then $45.00/month - No credit card required now

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.

User avatar

Separating a post's BODY data and comments BODY data

Closed

avguru1 opened this issue
2 months ago

I am scraping a specific community's URL....e.g /r/yoursubhere/ .

It appears when data is pulled the BODY field can contain data from the Post or the Comments. The only way to differentiate is by looking at the dataType.

If we look at exporting options (excel, csv, etc.) Is it possible to scrape the comments and put them in a different metadata field than BODY? That way a comment can be associated with a post as opposed to being a new BODY value?

In short, I'm looking for a way to scrape the post and comment(s) and have them be associated with one another.

Thanks!

User avatar

You should be able to do that using the parentId present in the comment

User avatar

avguru1

2 months ago

Within the Actor or after downloading the results?

User avatar

After

Developer
Maintained by Community
Actor metrics
  • 286 monthly users
  • 99.2% runs succeeded
  • 0.5 days response time
  • Created in Feb 2022
  • Modified 4 days ago
Categories