Python Examples Scripts
Close a cookie dialog
Close a site's dialog for rejecting/accepting cookies with AgentQL.
Closing popup windows
Close popup windows (like promotion forms) with AgentQL.
Collecting pricing data
Collect pricing data from e-commerce websites using AgentQL.
Collect paginated ecommerce data
Collect ecommerce data across multiple paginated webpages.
Collect paginated news headlines
Collect news headlines across multiple paginated webpages.
Compare product prices
Compare product prices across websites with AgentQL.
First steps with AgentQL
Collect pricing data from e-commerce website using AgentQL.
Get single element by prompt
Use AgentQL's get_by_prompt method to retrieve an element and interact with it.
Humanlike mouse movement
Use humanlike mouse movement to avoid antibot with AgentQL.
Load additional content by scrolling
Load additional content on pages that load content based on scroll position.
Query a list of items
Query a list of items on the page with AgentQL.
Login to sites with AgentQL
Use AgentQL to interact with login forms and log into websites.
Scrape maps data
Scrape data from maps using AgentQL.
News Aggregator to CSV
Return news headlines from a selection of URLs and save the results to a CSV file.
Perform sentiment analysis
Perform sentiment analysis on YouTube comments with AgentQL and OpenAI's GPT-3.5 model.
Run a script in headless browser
Run the script in a headless browser with AgentQL.
Google Colab
Run AgentQL script in online development environment like Google Colaboratory.
Save and load authenticated state
Save and load an authenticated state (i.e., signed-in state) with AgentQL.
Run script in stealth mode
Apply techniques to lower the risk of being detected by anti-bot systems.
Submit form
Submit form with AgentQL.
Use existing browser with AgentQL
Use existing browser with AgentQL.
Use remote browser with AgentQL
Browser is hosted remotely - you connect to it over CDP.
Wait for page to load
Wait for the page to load completely before querying the page with AgentQL.
Get an element's XPath
Get XPath of an element that was fetched with AgentQL.