Skip to content

mihirkelkar/GagAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Unofficial 9GAG API


One Call to Rule them All

The below call will fetch you the standard data for all posts on the hot page.

get_posts_from_page()

Specify the following as attributes to get more filtered, pivoted data:

Criteria for call Function Call
100 scrolls for the hot page get_posts_from_page(number_of_pages = 100)
100 scrolls for the hot page
Only gifs
get_posts_from_page(number_of_pages = 100, media_type = 'gif')
50 scrolls of the cosplay page get_posts_from_page(number_of_pages = 50, page_type = 'cosplay')
All posts on the hot page for 50 scrolls which have more than 100 comments get_posts_from_page(number_of_pages = 50, comments_more_than = 100)
Posts on 50 scrolls of the trending page with more than 40 votes get_posts_from_page(number_of_pages = 50, page_type = 'trending', more_votes_than = 40)

All filtering criteria can be used in a single function call.

A typical output would look like this: {

"votes": 12591,

"title": "I'm spending holidays in Germany - it was a hard lesson..",

"comments": 547, "post_url": "http://9gag.com/gag/awbQRAB",

"type": "Image",

"media_url" : "http://img-9gag-lol.9cache.com/photo/awbQRAB_460s.jpg"

}

About

An Unofficial Python API for 9gag

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages