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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file reddit_comment_scrapper-0.3.0.tar.gz
.
File metadata
- Download URL: reddit_comment_scrapper-0.3.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e7f159643f160ae632e729411bcb0a6d84028649f51102be7173e22b8c1fb76 |
|
MD5 | 0ff27525ed815b7388689a5ade529c0a |
|
BLAKE2b-256 | ddc35e058c5c48194cb07363d2219ec17b32195618e1bf99cab668109097980a |
Provenance
File details
Details for the file reddit_comment_scrapper-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: reddit_comment_scrapper-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.10.2 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb2e5b8d025e6e5303e39b066a8aa5d6d3a3e7d45f184d5e5b0e01caa8f8d4f8 |
|
MD5 | ff9149baa3c13c1886630028a2337775 |
|
BLAKE2b-256 | 0b9d727e32948914f58ffcf37f22c9214693b5b785f4821bc458c0510bd0e909 |