SShortSingh.
Back to feed

Developer Replaces Headless Chrome With Plain HTTP Requests, Cutting Scraping Compute Up to 10x

0
·5 views

A developer building B2B data extraction tools on Apify found that most of their target sites did not need a headless browser, since the desired data was already present in initial HTML or RSS responses. Testing from datacenter IPs, four of five production pipelines ran without a browser, though some sites required workarounds such as a consent cookie for Google's Chrome Web Store. Cloudflare blocked Substack's JSON archive endpoint from cloud IPs, so the pipeline falls back to the publicly available RSS feed when the archive is empty or blocked. The author also described parsing fixes for embedded JSON and for mixed-order Shopify review metadata, and noted the approach trades browser rendering for lower RAM and cost.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Stuck on the Apple Logo? Six Steps to Try Before Repair

An iPhone that shows the Apple logo and never finishes starting up often results from a failed update, low storage, or a faulty app. The guide recommends trying fixes in order, starting with a force restart and a full charge using a wall adapter. If that fails, updating or restoring through a computer in recovery mode can reinstall iOS, though restoring erases all data and should only be done with a backup. Freeing up storage after the phone boots can prevent the problem from returning. If the phone still won't start after a restore, the issue is likely hardware and should be checked by Apple or an authorised repair shop.

0
ProgrammingDEV Community ·

Method Reconstructs Smooth CAD Solids from Sliced G-code Files

A developer describes a technique for recovering an editable CAD solid from G-code when the original 3D model has been lost. The approach treats each printed layer as a sample of the designed surface rather than a solid brick, then fits smooth curves through corner points across layers to eliminate stair-stepping. Features deviating more than 0.3 mm from that smooth surface, such as engravings, are retained as real geometry. On one real print the method produced a valid solid with all 16 engraved numerals recovered, within 0.54 mm of every printed layer, in about two minutes. The methods were also published as a defensive disclosure to serve as prior art and discourage later patenting, and the implementation is released as Unslice, a plug-in for a free STL-to-STEP converter.

0
ProgrammingDEV Community ·

Guizzo Lets AI Assistants Send Colleagues Questions and Collect Their Replies

A DEV Community guide explains how to connect an AI assistant such as Claude or ChatGPT to Guizzo, a tool that lets the AI ask a colleague a question directly. Once set up, a user can instruct the assistant to pose a question, such as choosing between two clients, and the colleague receives an email with a private link to answer. Colleagues need only an email address, with no account or AI app required. Setup takes about five minutes and involves creating a free Guizzo account during its beta, then adding a connector address to the AI app. The guide also covers inviting teammates or saving outside contacts, and notes that questions remain open for seven days and each uses one credit from the workspace's monthly allowance.

0
ProgrammingDEV Community ·

How to match two identical royalty payments to the right book titles

A writer receives an $80 deposit in March, and their February statement appears to account for the same amount, making it hard to tell which titles earned it. A fictional example shows two months of royalties with identical $84.30 totals, each carrying a $4.30 deduction, so the payout alone cannot reveal the correct title breakdown. The guidance is to check the Payment Report for each payment's sales period, then compare accrued royalties in the marketplace currency against the title details in the Prior Months' Royalties report. Keeping each payout as its own column in a worksheet helps separate overlapping payments and spot any mismatches. The method also covers payments tied to a marketplace with no royalty rows, and how a small change in one title's figure can point to the payment needing review.