Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    reddit_api 1.5.1

    Download button

    No screenshots available
    Downloads: 298  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Timothy Mellor | More programs
    GPL v3 / FREE
    June 29th, 2012, 05:19 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    reddit_api description

    A Python wrapper for the Reddit API

    reddit_api is a Python wrapper for Reddit's API, aiming to be as easy to use as possible. Here's a quick peek, getting the first 10 stories from the 'hot' section of the 'opensource' subreddit.

    import reddit
    r = reddit.Reddit(user_agent="my_cool_application")
    stories = r.get_subreddit('opensource').get_hot(limit=5)
    list(stories)

    this displays

    [< Submission: 1 :: OpenFOAM: Open Source Computational Fluid Dynamics >,
     < Submission: 9 :: My new open source project, Bunchify >,
     < Submission: 93 :: Arrested while contributing to OpenStreetMap >,
     < Submission: 27 :: DK: 25,000 hospital staff Copenhagen region to use open source office suite >,
     < Submission: 24 :: Eclipse online >]


    Install

    You can install via pip

    pip install reddit

    Or via setup.py

    python setup.py install


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Reddit API | Python wrapper | Python | Reddit | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM