Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/and3rson/nineapi
Unofficial python client library for *official* 9GAG API. (alpha)
https://github.com/and3rson/nineapi
9gag api client python python2 python3
Last synced: 23 days ago
JSON representation
Unofficial python client library for *official* 9GAG API. (alpha)
- Host: GitHub
- URL: https://github.com/and3rson/nineapi
- Owner: and3rson
- License: gpl-3.0
- Created: 2017-04-21T15:14:49.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T20:38:02.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T09:10:36.947Z (about 1 month ago)
- Topics: 9gag, api, client, python, python2, python3
- Language: Python
- Homepage:
- Size: 28.3 KB
- Stars: 45
- Watchers: 12
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=====
Index
=====Documentation is here: https://nineapi.readthedocs.org
So I'm sick and tired with web apps. I want normal adequate desktop apps for all the things.
Same relates to 9GAG. Everyone says there's no official API for 9GAG, but of course there is - you just need to go deeper.
Here's what I did in 20 minutes:
- Decompiling 9GAG app for Android and digging within its JS sources (that's right - JavaScript, not Java: 9GAG app seems to be written in React Native.) to find the logic for signing requests.
- Dumping HTTP traffic with spoofed SSL certificates to see actual request & response bodies.So far there seem to be multiple domains used including `api.9gag.com`, `ad.9gag.com`, `notify.9gag.com`, `admin.9gag.com` and `comment-cdn.9gag.com`. I was able to make my own requests and retrieve the data I want.
Any fellow coders willing to contribute to this? We would be the first ones to reverse-engineer an actual 9GAG API. How cool is that?