Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkristof200/py_reddit_scraper
https://github.com/kkristof200/py_reddit_scraper
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kkristof200/py_reddit_scraper
- Owner: kkristof200
- Created: 2020-06-20T16:36:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T10:54:48.000Z (about 1 year ago)
- Last Synced: 2024-09-30T13:16:23.372Z (about 2 months ago)
- Language: Python
- Size: 96.7 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# reddit_scraper
![python_version](https://img.shields.io/static/v1?label=Python&message=3.5%20|%203.6%20|%203.7&color=blue) [![PyPI downloads/month](https://img.shields.io/pypi/dm/reddit_scraper?logo=pypi&logoColor=white)](https://pypi.python.org/pypi/reddit_scraper)## Description
## Install
~~~~bash
pip install reddit_scraper
# or
pip3 install reddit_scraper
~~~~## Usage
~~~~python
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)
~~~~
##