How to scrape 9GAG with AgentQL
Looking for a better way to scrape 9GAG? Say goodbye to fragile XPath or DOM selectors that easily break with website updates. AI-powered AgentQL ensures consistent web scraping across various platforms, from 9GAG to any other website, regardless of UI changes.
Not just for scraping 9GAG
Smart selectors work anywhere
https://9gag.com
URL
Input any webpage.
{
posts[] {
title
image_urls[]
likes
comments_count
}
}
Query
Describe data in natural language.
{
"posts": [
{
"title": "Funny cat video",
"image_urls": [
"url1",
"url2"
],
"likes": 1234,
"comments_count": 56
}
]
}
Returns
Receive accurate output in seconds.
How to use AgentQL on 9GAG



1
Install the SDK
Install code for JS and Python
npm install agentql
pip3 install agentql
3
Run your script
Install code for both JS and Python
agentql init
python example.py
More Websites to Scrape
More websites that start with 9
Get started
Holds no opinions on what’s and how’s. Build whatever makes sense to you.