Skip to content

Latest commit

 

History

History

0x16-api_advanced

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

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