Urgent.News

What's breaking now, across thousands of outlets.

Tech

Going from 150s to <1s: Replacing DOM scraping with a site's internal RPC API in a Chrome extension

Google AI Studio has no way to export a conversation. I wanted one, so I built an open source Chrome extension, AI Studio Exporter . Version 1 did what every exporter does: scroll the page to the top, wait for messages to render, and read them out of the DOM. Version 2 stopped touching the page at all and calls the same internal API that the AI Studio frontend calls. For a 200-message…

Google AI Studio offers no conversation export feature, so the developer built an open-source Chrome extension called AI Studio Exporter. The first version of the extension worked by scrolling to the top of the page, waiting for messages to render, and extracting them from the DOM. The second version stopped scrolling and instead queried the same internal API that the AI Studio frontend utilized.

This dramatically improved the export speed for a 200-message conversation, reducing it from around 150 seconds to under a second. The source material details the reasoning behind switching from DOM scraping to using the internal RPC API in the Chrome extension, the challenges faced, the API calls made, authentication methods, and how attachments are handled.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Building The Exact Adobe, Vecteezy And Dreamstime CSVs With One Python Script

The first time I tried to upload a batch to Adobe Stock, I spent forty minutes writing what I thought was a clean CSV. It got rejected before a single file was reviewed. The error was the header row.

  • Python script 'makemetadata.py' generates Adobe, Vecteezy, and Dreamstime CSV files.
  • Script uses only Python standard library for compatibility on minimal server environment.
  • Pipeline Starter Kit compiles all scripts, folder structure, and installation instructions.

Zoho CRM too complicated? Six documented ways to simplify it

A CRM feels complicated when every user sees everything. Zoho gives you several documented ways to show each person only what they need. 1.

  • Different teams can have distinct page layouts.
  • Layout rules let you show/hide fields based on values.
  • Users can create views with specific criteria for simpler navigation.

More from Thursday 15 October →