Skip to main content

A Python package for scraping Reddit user data.

Project description

Reddit Scraper

A Python package for scraping user data from Reddit. This package provides functionality to search for Reddit users and scrape their submitted posts, comments, and other relevant data.

Features

  • Search for Reddit users based on a query.
  • Scrape user data including submitted posts, comments, and media.
  • Asynchronous implementation for efficient data fetching.

Installation

You can install the package using pip:

pip install reddit-scraper

Usage

Here is a simple example of how to use the RedditScraper class:

from reddit_scraper.reddit_scraper import RedditScraper
import asyncio

async def main():
    scraper = RedditScraper()
    users = await scraper.search_reddit_users("OpenAI")
    print(users)

    user_data = await scraper.scrape_user_data("pokimane")
    print(user_data)

asyncio.run(main())

Running Tests

To run the tests for this package, navigate to the project directory and run:

pytest

License

This project is licensed under the MIT License. See the LICENSE file for more details.

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_tool-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reddit_scraper_tool-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file reddit_scraper_tool-0.1.0.tar.gz.

File metadata

  • Download URL: reddit_scraper_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for reddit_scraper_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9390e21e608f967bc93713b6954804d928f13e265c2f5df4cba7d2a1301cebe1
MD5 4d2b2f3ca805e7c2e7146bf62d1dac67
BLAKE2b-256 63c18b8cf2c8aa722a008691d426c1f60e72fab1782cac729dc645d5fc8ca639

See more details on using hashes here.

File details

Details for the file reddit_scraper_tool-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reddit_scraper_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f284560b676da1a8cf70bd4d5a1e7fefa8fd92e1ae2a70f085903cbc85fc292f
MD5 4861466a1917033f05d9678b76f26547
BLAKE2b-256 27d275e8b73913a17bccfc7b1e44460bf1686856d7ae7472998d512c6a953135

See more details on using hashes here.

Supported by

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