Skip to main content

reddit_scraper

Project description

reddit_scraper

python_version PyPI downloads/month

Description

Install

pip install reddit_scraper
# or
pip3 install reddit_scraper

Usage

from kcu import kjson
from reddit_scraper.reddit_scraper import RedditScraper

# posts = RedditScraper.get_posts('askreddit', max_count=10)

# print(len(posts))

id_ = 'hyuiqg'
post = RedditScraper.get_post(id_, comments_min_score=250)

j = post.json
del j['post_dict']
del j['comments_dict']

kjson.save(id_ + '.json', j)

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_scraper-0.0.21.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

reddit_scraper-0.0.21-py3-none-any.whl (8.0 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