gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
make a pypeteer bot to go to octocaptcha.com, wait untill it gets a request to…
- User
make a pypeteer bot to go to octocaptcha.com, wait untill it gets a request to https://github-api.arkoselabs.com/fc/gfct/ gets sent from the browser, then from the data that the browser sends take the token value from the json and keep it as a var.
- Assistant
Certainly! Here is an example of a Puppeteer bot script in JavaScript that navigates to
octocaptcha.com, waits for the request tohttps://github-api.arkoselabs.com/fc/gfct/, and extracts the token value from the JSON response:const puppeteer = require('puppeteer'); (async () => { // Launch browser and open a new page const browser = await puppeteer.launch(); const page = await browser.newPage(); // Intercept the network requests await page.setRequestInterception(true); // Listen for the request and extract token from response data page.on('request', async (interceptedRequest) => { if (interceptedRequest.url() === 'https://github-api.arkoselabs.com/fc/gfct/') { interceptedRequest.continue(); interceptedRequest.respond({ status: 200, contentType: 'application/json', body: '{ "token": "YOUR_TOKEN_VALUE" }', // Replace with actual response JSON }); const response = await interceptedRequest.response(); const responseData = await response.json(); const token = responseData.token; // You can now use the variable 'token' in your code console.log('Token:', token); } else { interceptedRequest.continue(); } }); // Navigate to octocaptcha.com await page.goto('https://octocaptcha.com'); // Wait for navigation to complete await page.waitForNavigation(); // Close the browser await browser.close(); })();Please note that you would need to replace
'{ "token": "YOUR_TOKEN_VALUE" }'with the actual JSON response that you receive from the browser.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.