Getting Started With Reddit REST API in Python

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • In this tutorial, we will learn how to use Reddit’s API (REST API) in Python. (I will be covering how to automate different Reddit task in separate videos)
    So Reddit is probably one of the largest social network websites with more than 10,000 groups based on different interests and topics for questions and discussions. If you are watching this video, more than likely you already know what Reddit is.
    There is already a Python library called PRAW, which is a wrapper based on Reddit REST API that simplifies some of the operations. For me personally, I like to use Reddit REST API because it gives me full control of all the methods, and if something breaks or an API endpoint is updated, I can probably fix them right the way.
    📑 Source Code: learndataanalysis.org/source-...
    📑 To register a Reddit App: / apps
    📑 Reddit API Reference: / api
    ► Buy Me a Coffee? Your support is much appreciated!
    -------------------------------------------------------------------------------------------
    ☕ Paypal: www.paypal.me/jiejenn/5
    ☕ Venmo: @Jie-Jenn
    💸 Join Robinhood with my link and we'll both get a free stock: bit.ly/3iWr7LC
    ► Support my channel so I can continue making free contents
    ---------------------------------------------------------------------------------------------------------------
    🌳 Becoming a Patreon supporter: / jiejenn
    🛒 By shopping on Amazon → amzn.to/2JkGeMD
    📘 Facebook Page → / madeinpython
    📘 More tutorial videos on my website → LearnDataAnalysis.org
    ✉️ Business Inquiring: CZcams@LearnDataAnalysis.org
    ⏰ Timestamps:
    00:00 - Reddit API Intro
    00:46 - Create a Reddit App
    02:25 - Authentication (Token Id)
    10:25 - Retrieve Posts From A Subreddit Example
    #Reddit #RedditAPI #Python

Komentáře • 9

  • @abhijeetbhalerao537
    @abhijeetbhalerao537 Před 2 lety

    Please answer
    Can we get email notification when someone post particular keyword on reddit post ??

  • @olafcreed4726
    @olafcreed4726 Před 2 lety

    Severely underrated channel.
    But how do you display the 5 posts of that subreddit at the end of the video? Wasn’t that the aim?

    • @jiejenn
      @jiejenn  Před 2 lety

      I think I rushed towards the end, which I forgot to show the complete example. I will make follow up videos showcase how to use Reddit API to perform different operations.

    • @estebangarcia3485
      @estebangarcia3485 Před 2 lety

      @@jiejenn Cool! I'll be checking your videos about this topic, I'm interested in Sql Api (also csv excel) to call them with github (or other platform).
      Newbie here, I liked your channel (and way of teaching) also I add to the other comment about "aim", keep it up! thanks

  • @beanhuang481
    @beanhuang481 Před 2 lety +1

    I am currently still getting a 401 error and I am positive my authentication details are correct, any ideas why this isn't working?

    • @zipkitty
      @zipkitty Před rokem

      +1

    • @InsertYourself1
      @InsertYourself1 Před rokem

      Log out of reddit and try logging back in using the password you think you have

  • @kdhairyavan
    @kdhairyavan Před rokem

    I am getting this error from credential import USERNAME, PASSWORD. I am getting error for credential, can you please help

    • @zipkitty
      @zipkitty Před rokem

      You need to make a file in the same folder with the name "credential", in that file you put in your USERNAME and PASSWORD variables