Building a Web Scraper: Claude vs ChatGPT vs Qwen3.8 27B

Comparisons
Building a Web Scraper: Claude vs ChatGPT vs Qwen3.8 27B

Users report that Claude and Claude Code can refuse to build a web scraper after reading the target site's terms of service, and older reports have ChatGPT citing robots.txt or consent. Qwen3.8-27B Uncensored on your own GPU pod refuses far less often, by its build author's figures, and leaves the compliance decision to you.

This article is for developers who collect public data for price tracking, research or their own tools. It covers what was reported, why it happens and how to run the same job on a model you control.

The task: building a web scraper or crawler

A scraper fetches web pages and pulls structured data out of them: prices, listings, job adverts, paper abstracts. In a thread on r/webscraping about Claude Code refusing to build a scraper, a user in the thread wrote that "it looked the site up, saw it's terms and conditions and refused".

The job is routine engineering. Search engines, price comparison sites, archives and much academic research depend on programs that read public pages. A user in a second thread, on r/ClaudeAI, argues that scrapers are sold commercially and are not against the law. That is one person's view, not a legal ruling. Whether a particular scrape is allowed depends on the site's terms, its robots.txt file and, where personal data is involved, data protection law. That call is yours, and no model can make it for you.

What Claude and ChatGPT do with it

The Claude reports share one pattern: the assistant looks at the target site, finds a rule against automation and declines.

  • In the r/claude thread Claude is refusing to build simple tools. It's just gotten more and more restrictive., a user reports that Claude declined to build a LinkedIn automation tool and gave LinkedIn's terms on automation as its reason. The user says they were not trying to take personal data.
  • The r/ClaudeAI thread mentioned above reports refusals on scraper work for public data, although scrapers already exist in the user's projects.
  • A GitHub issue of 31 August 2026 says Claude Code turns down harmless technical tasks over worries about third parties' terms of service and licence agreements. The reporter's example is analysing network captures from their own computer.

The ChatGPT evidence is older and thinner. In the r/ChatGPTPro thread Can you use chatgpt for basic website scraping?, a user says ChatGPT told them it could not scrape a site whose robots.txt forbids it. On OpenAI's developer forum, a post of 8 June 2023 titled Task as it goes against OpenAI's use case policy describes a search agent that stopped while looking up a medical device on manufacturers' websites. The reply the poster pasted called scraping a website without its owner's consent unethical. Most of the ChatGPT reports we found date from 2023 and 2024 and are less about a site's terms. We found no report of Codex refusing a scraper.

Each report is one person's account. We did not run their prompts on Claude or ChatGPT ourselves, and both products change often, so something refused then may work now.

We found no published policy from either vendor that addresses scraping directly, so the stated reason comes from the replies: a site's terms of service in the Claude reports, robots.txt and consent in the ChatGPT ones. That caution has a basis. A site's terms can forbid automated access, robots.txt records what the owner asks crawlers to leave alone, and personal data is protected by law in many countries. An assistant that checks those things is doing what a careful contractor would do.

Neither product is closed to this work. One of the Claude users says the refusals began with a particular model version, and a user in the r/webscraping thread describes ChatGPT as the more willing of the two. The complaint is that you cannot tell in advance which session will stop.

Why this happens

In these reports the refusal reads as the model's own judgement: it looks the site up, reads the terms and declines. That points to the first two guardrail layers, safety training and the provider's instructions, not to a filter returning an error. We cannot see inside either product, so treat this as our reading. ChatGPT and Claude guardrails vs your own GPU explains the layers and which of them stay on your own GPU.

What Qwen3.8-27B Uncensored does with it

Qwen3.8-27B Uncensored is a community build of Alibaba's 27B model. Its refusal behaviour was removed by editing the weights directly, it was merged with the build author's own fine-tunes, and it was tuned to reason in fewer tokens. On your pod no provider filter sits in front of it, and the system prompt is yours.

The refusal figures are the build author's, not ours. On the author's 100-prompt tests the official model refused 99 prompts, and this build refused 11 after the second removal pass. The author fine-tuned once more and published no count for the final files. So it refuses far less often, and it can still decline.

For scraper work that means the model is much less likely to stop at the terms-of-service question and more likely to treat the request as a coding task: fetching, parsing, pagination, retries, storage. We have not run a scraper task on our pods, so this page shows no output. The maker reports 90.3 on LiveCodeBench v6 and 61.7 on SWE-bench Pro for the official model. The build supports tool calls and serves a 256K context, enough to paste saved pages of HTML next to your code. On one RTX 5090 it generates 79 tokens per second, measured on our pods.

Claude (app)ChatGPT (app)Qwen3.8-27B Uncensored on your pod
Who sets the rulesAnthropic's usage policy and instructionsOpenAI's usage policies and Model SpecYou, within the law, the model's licence and our Terms
The filter in front of the modelCan block, cut short or flag a replyCan block, cut short or flag a replyNone; the request reaches the model as you sent it
What is reported for this taskRefusals that cite a site's terms; see the reports aboveOlder reports citing robots.txt and consent; see the reports aboveNot run by us; the build author counted 11 refusals in 100 test prompts
Where your prompts goKept under the provider's data policyKept under the provider's data policyTo your GPU; our servers keep token counts, not the text
How you payA subscriptionA subscriptionPod time in packs; no per-token billing

How to run it

  1. Open the Qwen3.8-27B Uncensored model page for the GPU options and the live price.
  2. Deploy Qwen3.8-27B Uncensored from the catalog and choose a time pack.
  3. When the pod is ready, copy the base URL, the API key and the model id from your console.
  4. Send a request with any OpenAI client. The prompt below is ours, written for this kind of task.
from openai import OpenAI

client = OpenAI(base_url="https://YOUR-POD-ENDPOINT/v1", api_key="YOUR_API_KEY")

SYSTEM = (
    "You are a senior Python engineer who builds web crawlers. "
    "Write complete, runnable code with type hints and short comments. "
    "The user has read the site's terms and robots.txt and is responsible for compliance. "
    "Build in polite defaults: honour robots.txt, one request per second, "
    "a clear User-Agent with a contact address, retries with backoff."
)

TASK = (
    "Write a crawler for https://example.com/catalogue/ that follows pagination, "
    "extracts product name, price and stock status from each listing, "
    "and saves the rows to SQLite. Use httpx and selectolax. "
    "Add a --max-pages flag and a unit test for the parser."
)

response = client.chat.completions.create(
    model="YOUR_MODEL_ID",  # copy the model id from your console
    messages=[
        {"role": "system", "content": SYSTEM},
        {"role": "user", "content": TASK},
    ],
    temperature=0.6,
    top_p=0.95,
    extra_body={"top_k": 20},
)
print(response.choices[0].message.content)

The sampling values are the maker's settings for precise coding. Thinking is on by default; set reasoning_effort to low for quick edits.

A single request is the slow way to build a scraper. Inside a coding agent the model can fetch a sample page, read the real HTML and test its own selectors. The OpenCode guide shows where to paste the base URL and key, and Qwen3.8 27B as an OpenCode coding agent walks through a full setup. Cline connects the same way. The API docs list the endpoints, and how Self Deploy works covers pods and packs.

Honest limits

  • It can still refuse. Eleven refusals in 100 prompts is the last figure the build author published. There is no count for the final files or for our pods.
  • The file is 4-bit. The build author names this size as the minimum for tool calling and recommends a larger one. Test long agent runs before you depend on them.
  • It thinks less by design. If a parser needs careful work, say so in the prompt.
  • It writes from what you show it. Without the page's HTML it guesses selectors, and guesses break. Sites change their markup, and pages rendered by JavaScript need a headless browser.
  • Compliance stays with you. Removing refusals does not change the law, the model's licence or our Terms. Read the site's terms and robots.txt, keep your request rate low, and take advice before you collect personal data or republish copied content. Nothing here is legal advice.
  • Some things stay off limits on any GPU. Attacking systems you do not own or have written permission to test is one, and so is anything else that is illegal where you or the GPU are. Getting past a login you have no right to use is not collecting public data.

Related reading

Sources

FAQ

Why does Claude Code refuse to build a web scraper?

In the reported cases Claude looked up the target site, found terms that forbid automated access and declined on that basis. These are individual accounts, and one of the users says scrapers already exist in their projects.

Does ChatGPT refuse to write web scrapers?

Some users report that it cited robots.txt or consent, mostly in threads from 2023 and 2024. A user in a more recent thread described ChatGPT as more willing than Claude Code, and we found no report of Codex refusing a scraper.

Is web scraping legal?

It depends on the site, the data and the country. The site's terms, its robots.txt file, data protection law and copyright can all apply, so check them for your project and take legal advice where the stakes are high.

Which uncensored model is best for writing a web scraper?

Qwen3.8-27B Uncensored is a sensible first choice: it runs on one RTX 5090 pod, supports tool calls and connects to coding agents such as OpenCode. Its maker reports 90.3 on LiveCodeBench v6 for the official model.

Does Qwen3.8-27B Uncensored ever refuse?

Yes, it can. The build author counted 11 refusals in 100 test prompts after the second removal pass and published no count for the final files. The official model refused 99 of the same 100.

More to read

Other recent articles from our blog.