Skip to main content
use-apify.com

Tutorial: guides & tutorials

Hands-on web scraping tutorials covering selectors, headless browsers, anti-bot, and Apify deployment for developers at every skill level.

52 articlesPage 1 of 6

View all tags

Related topics

Proxies8 min read

HTTP vs SOCKS5 Proxy: Which Protocol for Scraping?

· 8 min read
Yassine El Haddad
Software Developer & Automation Specialist

An HTTP proxy speaks the web's protocol: it reads request headers, forwards them, and handles HTTPS through a CONNECT tunnel. A SOCKS5 proxy works one layer lower: it relays raw TCP (and optionally UDP) connections without looking at what is inside them. For plain web scraping over HTTPS, either one works and HTTP is the default. SOCKS5 wins when you need UDP, or a protocol that is not HTTP.

The two protocols get compared as if one were faster or safer in general. Neither claim survives contact with the details. Speed differences come from the pool and the provider, not the wire format. Security differences come from what you send, not which proxy dialect carries it. What actually separates them is scope: HTTP proxies are web specialists, SOCKS5 is a general-purpose pipe.

HTTP vs SOCKS5 at a glance​

HTTP proxySOCKS5 proxy
Layerapplication (L7)session/transport (L4/L5)
Understands requestsyes, headers and methodsno, opaque bytes
HTTPS supportCONNECT tunnel; target's TLS is end-to-endtunnels TCP, same end-to-end TLS
Non-HTTP protocolsno (HTTP, HTTPS and CONNECT only)yes: SMTP, IMAP, FTP, SSH, MQTT, WebRTC
UDPnoyes, where the provider enables it
Authusername/passwordusername/password
Provider availabilityuniversal defaultcommon; sometimes on separate ports
Typical useweb scraping, browsers, curlscraping plus tooling that speaks TCP

What an HTTP proxy actually does​

An HTTP proxy terminates your client's HTTP conversation. Your client sends the request line and headers to the proxy; the proxy parses them, forwards the request to the target with itself as the sender, and relays the response. Because the proxy can read the HTTP layer, it can do things SOCKS5 cannot: rewrite headers, serve cached responses, or apply request-level policy.

For HTTPS, the client sends CONNECT host:443, the proxy opens a TCP connection to the target, and from there the client's TLS session with the target runs straight through the proxy. The proxy cannot read the encrypted content. This point matters because "HTTP proxy" sounds less secure than "SOCKS5" and, for HTTPS traffic, it is not: in both cases your TLS session terminates at the target website, not at the proxy. Either way the proxy provider sees your destination host and your credentials, not your payload.

What a SOCKS5 proxy does​

SOCKS5 sits below the application layer. The client authenticates, asks the proxy to connect to a destination address and port, and then treats the proxy as a raw pipe. SOCKS5 never parses HTTP, which has three practical consequences:

  1. Anything that runs over TCP works: mail protocols, database connections, SSH, game and chat protocols, gRPC.
  2. UDP relay is in the specification (ASSOCIATE), and some providers enable it: Evomi offers UDP on static residential IPs, Floppydata on its rotating product, and DataImpulse documents a UDP mode.
  3. No HTTP-layer features: the proxy cannot cache, rewrite, or inspect anything. You get the pipe, nothing else.

Speed: the difference is not the protocol​

For the same pool and the same exit, HTTP and SOCKS5 performance is functionally identical; the bytes of proxy handshake differ by a round trip at most. What moves the needle is the pool class (a residential exit is a home line; a datacenter exit is a server), the provider's gateway capacity, and your targeting settings. Benchmark providers, not protocols: our proxy provider benchmark records measured response times across five providers, and the spread between providers dwarfs any protocol effect.

Which protocol each provider serves​

Most providers offer both, on separate ports, from the same credentials (verified November 2026):

ProviderHTTP(S)SOCKS5
DataImpulseport 823port 824
Evomi1000/10011002 (UDP on static residential)
Floppydataone gatewaysame gateway, UDP included
IPRoyaldefaultsupported
Bright Datadefaultsupported

If your provider lists only HTTP, check the port table in its docs before concluding SOCKS5 is absent; it is usually a second port, not a second product.

Using each in code​

Python's requests speaks HTTP proxies natively, and SOCKS5 with one extra dependency:

http-vs-socks5.py
import requests

# HTTP proxy: works out of the box
http_proxy = "http://USER:PASS@gw.dataimpulse.com:823"
r1 = requests.get("https://api.ipify.org/", proxies={"http": http_proxy, "https": http_proxy}, timeout=30)

# SOCKS5: pip install requests[socks]
socks_proxy = "socks5h://USER:PASS@gw.dataimpulse.com:824"
r2 = requests.get("https://api.ipify.org/", proxies={"http": socks_proxy, "https": socks_proxy}, timeout=30)

print(r1.text, r2.text)

The socks5h:// scheme matters: the trailing h sends the destination hostname to the proxy for resolution, so DNS lookups exit through the proxy instead of your local resolver. With plain socks5://, your machine resolves the hostname first, which leaks which domains you are visiting to your ISP or network operator. The same choice exists in curl: --socks5-hostname over --socks5.

When HTTP wins​

  • Plain HTTPS scraping. Every library, every provider, every example assumes it. Nothing to configure, nothing extra to install.
  • Targets that inspect the proxy chain. Some stacks behave differently when they see a SOCKS handshake; HTTP CONNECT is what browsers emit, so it blends in.
  • HTTP-level debugging. A mitmproxy-style tool between your client and an HTTP proxy can log requests, which is harder through an opaque SOCKS pipe.

When SOCKS5 wins​

  • UDP traffic. QUIC and HTTP/3 ride on UDP; so do some DNS, VoIP and telemetry protocols. An HTTP proxy cannot carry any of it.
  • Non-HTTP services. Scraping stacks that also pull from mail servers, message queues or SSH-hosted datasets need one pipe for everything.
  • DNS privacy. With socks5h://, hostname resolution happens at the proxy exit, in the exit's country, which also keeps geo-consistent lookups when you geo-target.

How protocol choice interacts with anti-bot systems​

Anti-bot stacks fingerprint the TLS ClientHello and the HTTP/2 settings frame that your client emits, not the proxy dialect you used to get there. Protocol choice is invisible to the target; what the target scores is your exit IP's reputation and your client's fingerprint. If you are being blocked, the fix is usually pool class or fingerprint management, covered in our anti-detection reference and the Cloudflare bypass guide, not a protocol switch.

Claude16 min read

Chat With Any YouTube Channel in Claude (Cited, No Code)

· 16 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

Ask Claude to pull every transcript from a channel with the YouTube Transcript Scraper Pro Actor. Have it split the transcripts into labelled passages of up to 512 tokens with the Markdown RAG Chunker, then add the result to a Claude Project or a Cowork folder. Each passage begins with its video title and a timestamp link, so every answer can cite the exact moment in the video. It needs no code, and 50 captioned videos cost well under $1 in Apify usage.

Some creators have hundreds of hours of useful video and no searchable record of what they said. "What did they say about pricing?" usually means scrubbing through ten videos. This guide turns a channel into a knowledge base you can question in plain language, where every answer names the video and the minute it came from.

Claude12 min read

MCP Context Cost in Claude Code: 12 Servers Measured

· 12 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

With Claude Code's default tool search, 12 popular MCP servers added only 5,848 input tokens to a session in our test. With tool search turned off, the same 12 servers added 63,186 tokens, about 6% of a 1M-token window and nearly a third of a 200K one. The biggest single server was GitHub's remote server: 46 tools, about 19.8k tokens when loaded. The startup cost that remains with tool search on is mostly server instructions, not tool definitions.

Every Claude Code setup guide warns that MCP servers eat your context window. Almost none of them give numbers, and the advice was written before tool search became the default. So we measured it on 21 October 2026: 12 servers, one at a time and all together, with tool search on, off and in auto mode.

Claude17 min read

Claude Code Web Research Setup: CLAUDE.md, MCP and Hooks (2026)

· 17 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

Four files turn a folder into a Claude Code research workspace: a CLAUDE.md with sourcing rules, a project-scope .mcp.json that connects the Apify MCP server with only three tools (search-actors, fetch-actor-details, call-actor), a .claude/settings.json that wires a PreToolUse hook to refuse any Actor run without a spend cap of $1 or less, and a /research skill that runs the whole loop. Every file is below, ready to copy.

Most Claude Code setup guides are about writing code. Mine is mostly about reading the web: pulling search results, pages Claude's built-in fetch can't render, and datasets I want to keep. That job has two failure modes code work does not have. Claude can state things it never sourced, and a scraper can quietly spend money.

This setup addresses both. It is a folder you can recreate in five minutes, and it works the same for a solo researcher as for a team that commits it to a repo.

Chatbase16 min read

Connect YouTube to Chatbase: Timestamped Video Answers

· 16 min read
Yassine El Haddad
Software Developer & Automation Specialist

Chatbase YouTube Connector is a free, MIT-licensed tool that keeps a Chatbase AI agent trained on your YouTube channel, so the agent answers customers from your videos and links to the exact minute it used. It runs as a scheduled GitHub Action or a Docker container on any VPS, with no server or database of its own. Transcripts come from an Apify Actor at about $1 per 1,000 videos, and a day with no new uploads costs $0. On Chatbase Standard and above it syncs through the API; on Free and Hobby it exports ready-to-upload files instead.

Here is what a customer sees once it is running:

Customer: How do I hand a chat over to a human? Agent: Turn on the Chatbase live chat action, then ... watch at 0:24

Claude6 min read

Build a Claude Skill for Web Scraping (Calls Apify Actors) (2026)

· 6 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

A Claude Skill is a SKILL.md folder that packages instructions Claude loads automatically when relevant. Build one that tells Claude to run Apify Actors for scraping, and every future "get me this web data" request just works. Or install the official Apify Claude Code plugin, which ships five ready-made skills.

Agent Skills are modular capabilities that extend Claude: each Skill packages instructions, metadata, and optional resources that Claude uses automatically when they are relevant to your request. Instead of re-explaining how you like to scrape every time, you encode it once, and Claude reaches for it on its own.

This guide builds a scraping skill that calls Apify, and points you at the official plugin if you would rather not start from scratch.

Claude6 min read

Scrape Websites into a Spreadsheet with Claude Cowork + Apify (2026)

· 6 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

Connect Apify's remote MCP server (https://mcp.apify.com) to Claude Cowork as a custom connector, then ask Cowork in plain language to scrape a site. Cowork picks the right Apify Actor, runs it, and hands you the data to export as a spreadsheet, no code.

Claude Cowork is Anthropic's "hand Claude real work" surface: it runs on the same agentic engine as Claude Code but with no terminal, so it can take on multi-step tasks and finish them for you. Cowork can already search the web and, with computer use, drive a browser a page at a time. What it has no answer for is bulk structured extraction: paginating a result grid, holding a schema across thousands of rows, rotating proxies, and surviving anti-bot defences. That is exactly what Apify adds: a store of pre-built scrapers Cowork can call as tools.

This guide connects the two and turns "get me this web data" into a spreadsheet, with no code.

Create a free Apify account (free monthly credits) →

Review6 min read

How to Scrape Trustpilot Reviews with Apify (2026 Guide)

· 6 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

Scrape Trustpilot reviews with an Apify Trustpilot Actor: paste a company's Trustpilot URL (or its domain), set how many reviews and which star ratings you want, run the Actor, and export the ratings, review text, dates, and company replies as JSON or CSV. No coding required.

Trustpilot is where customers rate companies at scale, so its reviews are a goldmine for reputation monitoring, competitor benchmarking, and product research. The site's UI paginates and caps what you can see, and it has no export button, which is exactly the gap a scraper fills.

This guide covers no-code Trustpilot extraction on Apify: which Actor to pick, the input fields that matter, what it costs, and how to turn the review text into insight with an LLM.

Start on Apify (free monthly credits) →

Google Maps7 min read

How to Scrape Google Reviews with Apify (2026 Guide)

· 7 min read
Yassine El Haddad
Software Developer & Automation Specialist
Quick Answer

Scrape Google reviews with Apify's Google Maps Reviews Scraper: paste the business's Google Maps URL, set how many reviews you want, run the Actor, and download review text, ratings, dates, and owner replies as JSON or CSV. No coding required.

Google reviews are one of the richest public signals a business leaves behind: star ratings, written feedback, dates, and the owner's replies. Pulling them at scale lets you monitor reputation, track sentiment over time, and benchmark competitors, none of which the Google Maps UI lets you export.

This guide walks through no-code review extraction with the Apify Google Maps Reviews Scraper (used by more than 48,000 people), the input fields that matter, what it costs, and how to turn the raw text into insight with an LLM.

Start on Apify (free monthly credits) →