Skip to content

Files

Latest commit

0d0d8b2 · Sep 20, 2019

History

History
This branch is up to date with luifap/holberton-system_engineering-devops-1:master.

0x16-api_advanced

0x16. API advanced

Description

This project focuses on making recursive requests to an API, how to use an API with pagination and how to read API documentation to find the endpoints we’re looking for.

Table of contents

Files Description
0-subs.py Python function that queries the Reddit API and returns the number of subscribers (not active users, total subscribers) for a given subreddit
1-top_ten.py Python function that queries the Reddit API and prints the titles of the first 10 hot posts listed for a given subreddit
2-recurse.py Python recursive function that queries the Reddit API and returns a list containing the titles of all hot articles for a given subreddit