Skip to main content

Simple Script for scraping the reddit comment graph

Project description

Usage

Run

pip install reddit-comment-scrapper

Provide the details

reddit-comment-scrapper Reddit_ID Reddit_Secret name_subreddit post_category , number_of_posts

Structure of JSON File

  • Each Submission has two entries
    • Submission Body
    • List of Dictionary of top level Replies
  • Each reply has 3 enteries
    • id of reply
    • Body of Reply
    • List of Dictionary of second level Replies

And this goes on Recursively in a depth first search manner till a reply with no further reply is found

JSON File always stored in a comments.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reddit_comment_scrapper-0.3.0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

reddit_comment_scrapper-0.3.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page