{"id":13567146,"url":"https://github.com/praw-dev/praw","last_synced_at":"2025-09-09T21:05:36.462Z","repository":{"id":1020268,"uuid":"847957","full_name":"praw-dev/praw","owner":"praw-dev","description":"PRAW, an acronym for \"Python Reddit API Wrapper\", is a python package that allows for simple access to Reddit's API.","archived":false,"fork":false,"pushed_at":"2025-05-05T16:05:08.000Z","size":51443,"stargazers_count":3677,"open_issues_count":7,"forks_count":472,"subscribers_count":69,"default_branch":"main","last_synced_at":"2025-05-10T00:31:27.718Z","etag":null,"topics":["api","oauth","praw","python","reddit","reddit-api"],"latest_commit_sha":null,"homepage":"http://praw.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/praw-dev.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":".github/CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["praw-dev","bboe","LilSpazJoekp"]}},"created_at":"2010-08-19T04:00:07.000Z","updated_at":"2025-05-09T15:36:36.000Z","dependencies_parsed_at":"2023-09-25T19:33:17.492Z","dependency_job_id":"d40f8cd5-1e9a-4a6e-a214-db666737510b","html_url":"https://github.com/praw-dev/praw","commit_stats":{"total_commits":3289,"total_committers":237,"mean_commits":"13.877637130801688","dds":0.6193371845545759,"last_synced_commit":"d91267692467b321b384ea695576263f114e8ba1"},"previous_names":[],"tags_count":158,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fpraw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fpraw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fpraw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/praw-dev%2Fpraw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/praw-dev","download_url":"https://codeload.github.com/praw-dev/praw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253668910,"owners_count":21945054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","oauth","praw","python","reddit","reddit-api"],"created_at":"2024-08-01T13:02:24.792Z","updated_at":"2025-05-12T03:36:57.769Z","avatar_url":"https://github.com/praw-dev.png","language":"Python","readme":"PRAW: The Python Reddit API Wrapper\n===================================\n\n.. image:: https://img.shields.io/pypi/v/praw.svg\n    :alt: Latest PRAW Version\n    :target: https://pypi.python.org/pypi/praw\n\n.. image:: https://img.shields.io/pypi/pyversions/praw\n    :alt: Supported Python Versions\n    :target: https://pypi.python.org/pypi/praw\n\n.. image:: https://img.shields.io/pypi/dm/praw\n    :alt: PyPI - Downloads - Monthly\n    :target: https://pypi.python.org/pypi/praw\n\n.. image:: https://github.com/praw-dev/praw/actions/workflows/ci.yml/badge.svg?event=push\n    :alt: GitHub Actions Status\n    :target: https://github.com/praw-dev/praw/actions/workflows/ci.yml\n\n.. image:: https://api.securityscorecards.dev/projects/github.com/praw-dev/praw/badge\n    :alt: OpenSSF Scorecard\n    :target: https://api.securityscorecards.dev/projects/github.com/praw-dev/praw\n\n.. image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg\n    :alt: Contributor Covenant\n    :target: https://github.com/praw-dev/.github/blob/main/CODE_OF_CONDUCT.md\n\n.. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white\n    :alt: pre-commit\n    :target: https://github.com/pre-commit/pre-commit\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :alt: Black code style\n    :target: https://github.com/psf/black\n\nPRAW, an acronym for \"Python Reddit API Wrapper\", is a Python package that allows for\nsimple access to Reddit's API. PRAW aims to be easy to use and internally follows all of\n`Reddit's API rules \u003chttps://github.com/reddit/reddit/wiki/API\u003e`_. With PRAW there's no\nneed to introduce ``sleep`` calls in your code. Give your client an appropriate user\nagent and you're set.\n\n.. _installation:\n\nInstallation\n------------\n\nPRAW is supported on Python 3.9+. The recommended way to install PRAW is via `pip\n\u003chttps://pypi.python.org/pypi/pip\u003e`_.\n\n.. code-block:: bash\n\n    pip install praw\n\nTo install the latest development version of PRAW run the following instead:\n\n.. code-block:: bash\n\n    pip install --upgrade https://github.com/praw-dev/praw/archive/main.zip\n\nFor instructions on installing Python and pip see \"The Hitchhiker's Guide to Python\"\n`Installation Guides \u003chttps://docs.python-guide.org/en/latest/starting/installation/\u003e`_.\n\nQuickstart\n----------\n\nAssuming you already have a credentials for a script-type OAuth application you can\ninstantiate an instance of PRAW like so:\n\n.. code-block:: python\n\n    import praw\n\n    reddit = praw.Reddit(\n        client_id=\"CLIENT_ID\",\n        client_secret=\"CLIENT_SECRET\",\n        password=\"PASSWORD\",\n        user_agent=\"USERAGENT\",\n        username=\"USERNAME\",\n    )\n\nWith the ``reddit`` instance you can then interact with Reddit:\n\n.. code-block:: python\n\n    # Create a submission to r/test\n    reddit.subreddit(\"test\").submit(\"Test Submission\", url=\"https://reddit.com\")\n\n    # Comment on a known submission\n    submission = reddit.submission(url=\"https://www.reddit.com/comments/5e1az9\")\n    submission.reply(\"Super rad!\")\n\n    # Reply to the first comment of a weekly top thread of a moderated community\n    submission = next(reddit.subreddit(\"mod\").top(time_filter=\"week\"))\n    submission.comments[0].reply(\"An automated reply\")\n\n    # Output score for the first 256 items on the frontpage\n    for submission in reddit.front.hot(limit=256):\n        print(submission.score)\n\n    # Obtain the moderator listing for r/test\n    for moderator in reddit.subreddit(\"test\").moderator():\n        print(moderator)\n\nPlease see PRAW's `documentation \u003chttps://praw.readthedocs.io/\u003e`_ for more examples of\nwhat you can do with PRAW.\n\nDiscord Bots and Asynchronous Environments\n------------------------------------------\n\nIf you plan on using PRAW in an asynchronous environment, (e.g., discord.py, asyncio) it\nis strongly recommended to use `Async PRAW \u003chttps://asyncpraw.readthedocs.io/\u003e`_. It is\nthe official asynchronous version of PRAW and its usage is similar and has the same\nfeatures as PRAW.\n\nPRAW Discussion and Support\n---------------------------\n\nFor those new to Python, or would otherwise consider themselves a Python beginner,\nplease consider asking questions on the `r/learnpython\n\u003chttps://www.reddit.com/r/learnpython\u003e`_ subreddit. There are wonderful people there who\ncan help with general Python and simple PRAW related questions.\n\nOtherwise, there are a few official places to ask questions about PRAW:\n\n`r/redditdev \u003chttps://www.reddit.com/r/redditdev\u003e`_ is the best place on Reddit to ask\nPRAW related questions. This subreddit is for all Reddit API related discussion so\nplease tag submissions with *[PRAW]*. Please perform a search on the subreddit first to\nsee if anyone has similar questions.\n\nReal-time chat can be conducted via the `PRAW Slack Organization\n\u003chttps://join.slack.com/t/praw/shared_invite/enQtOTUwMDcxOTQ0NzY5LWVkMGQ3ZDk5YmQ5MDEwYTZmMmJkMTJkNjBkNTY3OTU0Y2E2NGRlY2ZhZTAzMWZmMWRiMTMwYjdjODkxOGYyZjY\u003e`_\n(please create an issue if that invite link has expired).\n\nPlease do not directly message any of the contributors via Reddit, email, or Slack\nunless they have indicated otherwise. We strongly encourage everyone to help others with\ntheir questions.\n\nPlease file bugs and feature requests as issues on `GitHub\n\u003chttps://github.com/praw-dev/praw/issues\u003e`_ after first searching to ensure a similar\nissue was not already filed. If such an issue already exists please give it a thumbs up\nreaction. Comments to issues containing additional information are certainly welcome.\n\n.. note::\n\n    This project is released with a `Contributor Code of Conduct\n    \u003chttps://github.com/praw-dev/.github/blob/main/CODE_OF_CONDUCT.md\u003e`_. By\n    participating in this project you agree to abide by its terms.\n\nDocumentation\n-------------\n\nPRAW's documentation is located at https://praw.readthedocs.io/.\n\nHistory\n-------\n\n`August 2010\n\u003chttps://github.com/praw-dev/praw/commit/efef08a4a713fcfd7dfddf992097cf89426586ae\u003e`_:\nTimothy Mellor created a github project called ``reddit_api``.\n\n`March 2011\n\u003chttps://github.com/praw-dev/praw/commit/ebfc9caba5b58b9e68c77af9c8e53f5562a2ee64\u003e`_:\nThe Python package ``reddit`` was registered and uploaded to pypi.\n\n`December 2011\n\u003chttps://github.com/praw-dev/praw/commit/74bb962b3eefe04ce6acad88e6f53f43d10c8803\u003e`_:\nBryce Boe took over as maintainer of the ``reddit`` package.\n\n`June 2012\n\u003chttps://github.com/praw-dev/praw/commit/adaf89fe8631f41ab9913b379de104c9ef6a1e73\u003e`_:\nBryce renamed the project ``PRAW`` and the repository was relocated to the newly created\npraw-dev organization on GitHub.\n\n`February 2016\n\u003chttps://github.com/praw-dev/praw/commit/252083ef1dbfe6ea53c2dc99ac235b4ba330b658\u003e`_:\nBryce began work on PRAW4, a complete rewrite of PRAW.\n\nLicense\n-------\n\nPRAW's source (v4.0.0+) is provided under the `Simplified BSD License\n\u003chttps://github.com/praw-dev/praw/blob/0860c11a9309c80621c267af7caeb6a993933744/LICENSE.txt\u003e`_.\n\n- Copyright ©, 2016, Bryce Boe\n\nEarlier versions of PRAW were released under `GPLv3\n\u003chttps://github.com/praw-dev/praw/blob/0c88697fdc26e75f87b68e2feb11e101e90ce215/COPYING\u003e`_.\n","funding_links":["https://github.com/sponsors/praw-dev","https://github.com/sponsors/bboe","https://github.com/sponsors/LilSpazJoekp"],"categories":["Python","📱 Social Media Scrapers","Third-party APIs","Third-party Web APIs","SOCIAL MEDIA","شبکه های اجتماعی"],"sub_categories":["Ruby","کار با زمان و تقویم"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraw-dev%2Fpraw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpraw-dev%2Fpraw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpraw-dev%2Fpraw/lists"}