AgentQL Examples
Scripts
Query a list of items
How to query a list of items on the page with AgentQL.
Run script in a stealth mode
How to apply different techniques to lower the risk of being detected by a anti-bot system
Run a script in headless browser.
Run the script in headless browser with AgentQL
Save and load authenticated state
Save and load a authenticated state (i.e. signed-in state) with AgentQL
Wait for page to load
Wait for the page to load completely before querying the page with AgentQL
Close a cookie dialog
Close a site's dialog for rejecting/accepting cookies with AgentQL.
Close popup windows
Close modals like promotional forms and banners with AgentQL.
Compare product price across multiple websites
Compare product prices across websites with query_data() method with AgentQL.
Debug scripts
Debug AgentQL scripts in both synchronous and asynchronous environments with AgentQL.
Applications
Collect pricing data from e-commerce websites
Collect pricing data from an e-commerce website using AgentQL.
Google Colab
Run AgentQL script in online development environment like Google Colaboratory.
Perform sentiment anaylsis
Perform sentiment analysis on YouTube comments with AgentQL and OpenAI's GPT-3.5 model.
Get an element's XPath
Get XPath of an element that was fetched with AgentQL.