Skip to main content

sreddit

A simple tool for scraping information from subreddits.


Installation

To install, you can either Download the Pypi Package or,

pip install sreddit

To upgrade to the latest version,

pip install --upgrade sreddit

Usage

srtitles

Gets all unique titles from a subreddit.

from sreddit import SubRedditTitles

scraper = SubRedditTitles(subreddit="subreddit_name")
scraper.run()

srbodies

Gets all unique post bodies (i.e. descriptions) from a subreddit.

from sreddit import SubRedditBodies

scraper = SubRedditBodies(subreddit="subreddit_name")
scraper.run()

Optional Arguments


Argument What it Does
keywords Only includes content that has one or more of these keywords
show_progess Whether or not to show scraping progress (i.e. number of titles found) in the terminal
make_db If a database of the content found should be created after scraping
db_name The name of the database to be created--must end in .db
scroll_time Time to wait between scrolling down the page and finding elements.

FAQs

Metadata

Release files for sreddit 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sreddit 1.0.3
File Size Uploaded Provenance Actions
sreddit-1.0.3.tar.gz 5.2 kB Without provenance Details for sreddit-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sreddit 1.0.3
File Interpreter ABI Platform Actions
sreddit-1.0.3-py3-none-any.whl Python 3 none any Details for sreddit-1.0.3-py3-none-any.whl

Total release size: 12.5 kB

Release files / sreddit-1.0.3.tar.gz

Download URL sreddit-1.0.3.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f160ae4a8ce0be2ed34bd542e092b85d0a0ce8100d13633d2e7b9df64824d6fb
BLAKE2b-256 checksum
How to use checksums
3eb8f8b554cc25f9b60edf180ad44a43df59cfdd5b6e8033536ddb839ca1b679
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / sreddit-1.0.3-py3-none-any.whl

Download URL sreddit-1.0.3-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79465ea2b4a8708eaab0914b1a6ab89104e92409f35dcbc0363354de18d193ef
BLAKE2b-256 checksum
How to use checksums
99adad33da1ff65b43aeca9cd100a3c62597708cb2d79329552ecfc6723aa04d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Security for sreddit 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page