Skip to main content

Running Scrapers on a VPS: Location, Resources and Uptime Checklist

Written by Amanda Anderson

A scraper that runs on a laptop works until the laptop sleeps, updates or loses Wi-Fi. Moving it to a VPS gives you a machine that is always on, has predictable resources and a fixed IP. This checklist covers the three decisions that matter most — where the server is, how big it should be and how to keep jobs running without babysitting them.

1. Location: put the server close to what it talks to

Every request travels server → proxy → website → proxy → server. You can’t move the website, but you can choose where the server lives.

  • Most proxies and targets in Europe → the Netherlands or Germany.

  • Mainly US proxies and US websites → the USA.

  • Mixed geography → a well-connected hub such as Amsterdam or Frankfurt.

Test before you commit: from a small VPS, request the same page 20 times through a few of your proxies and compare the median response time and the share of timeouts. Then repeat from a second location.

2. Resources: size the server for the workload

Workload

vCPU

RAM

Notes

HTTP requests, parsing HTML/JSON

1–2

2–4 GB

Python requests/httpx, Scrapy

Headless browsers, up to ~10 parallel

4

8 GB

Playwright/Puppeteer use ~300–600 MB per page

Browsers + queue + database

8

16 GB+

Separate the DB if it grows

Other things that matter:

  • NVMe storage — saving results to SQLite/Postgres or files is much faster.

  • Network port speed — important when you download large pages or files.

  • Memory headroom — once a server starts swapping, every job slows down at once.

3. Uptime: make jobs survive restarts and errors

Run as a service. Use systemd or Docker with a restart policy so the scraper starts again after a crash or reboot.

[Service]

ExecStart=/usr/bin/python3 /opt/scraper/run.py

Restart=always

RestartSec=10

Schedule, don’t loop forever. Cron or a systemd timer for periodic jobs; a queue (Redis, RabbitMQ) for continuous work.

Retry with backoff. Retry failed requests 2–3 times with growing delays; switch proxy session on repeated errors.

Log and alert. Write logs with timestamps and counters (pages fetched, errors, CAPTCHAs). A simple daily report or a Telegram/Slack alert when the error rate jumps saves hours.

Keep state outside the process. Store progress (last page, processed IDs) in a database so a restart continues instead of starting over.

Back up the setup. A snapshot of a working server lets you clone it for a new project or recover in minutes.

4. Security basics

  • Log in with SSH keys, disable password login.

  • Create a separate non-root user for the scraper.

  • Close unused ports with a firewall.

  • Keep API keys and proxy credentials in environment variables, not in code.

  • Add the server IP to your proxy provider’s allowlist instead of storing passwords.

5. Final checklist

  1. Location chosen by measured latency to proxies and targets.

  2. vCPU/RAM sized for the number of parallel browsers or requests.

  3. Scraper runs as a service with automatic restart.

  4. Jobs scheduled; progress stored in a database.

  5. Retries with backoff; proxy session switched on repeated errors.

  6. Logs and alerts on error rate.

  7. SSH keys, firewall, secrets in environment variables.

  8. A snapshot of the working setup.

About PSB Hosting

PSB Hosting provides VPS and dedicated servers in the Netherlands, Germany, Finland and the USA on AMD and Intel CPUs with DDR5 memory and NVMe SSDs, unmetered traffic and ports up to 10 Gbit/s. High-CPU plans on AMD Ryzen 9 7950X suit browser-heavy scraping. Ready-made images with Docker, Node.js and other software, 24/7 support, payment by card or crypto.

CaptchaAI readers get 15% off their first PSB Hosting order with the promo code CAPTCHAAI.

Did this answer your question?