Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close cookie popup js sdk #77

Merged
merged 9 commits into from
Oct 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
agentql env key
  • Loading branch information
aarontantf committed Oct 29, 2024
commit e4eef261f1e0ebc7018750ee2fefe4f789b041ca
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const { wrap, configure } = require('agentql');
const { chromium } = require('playwright');

require('dotenv').config();

(async () => {
// Set the AgentQL API key via the `configure` method.
configure({ apiKey: 'YOUR_API_KEY' });
configure({ apiKey: process.env.AGENTQL_API_KEY });

const browser = await chromium.launch({ headless: false });
const page = wrap(await browser.newPage()); // Wraps the Playwright Page to access AgentQL's features.
Expand Down
Loading