FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Scraper worked on my laptop. Deployed to server and got instant 403s.
How-ToWeb Development

Scraper worked on my laptop. Deployed to server and got instant 403s.

via Dev.to TutorialNico Reyes3h ago

Scraper worked on my laptop. Deployed to server and got instant 403s. Wrote a scraper last week for product data. Tested it locally, worked fine. Collected 200 products, zero issues. Deployed to my VPS Friday night thinking I could run it on a cron and forget about it. Saturday morning I check the logs. Every single request: 403 Forbidden. Zero data collected. Fun times. What broke Turns out the target site was checking User-Agent. My laptop had requests with a normal browser user agent because I was using Playwright for something else and had set it globally in my profile. The server? Fresh Ubuntu install. Default Python requests User-Agent looks like this: python-requests/2.31.0 Site took one look at that and said no thanks. Fixed it Added a custom User-Agent to the requests header: import requests headers = { ' User-Agent ' : ' Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 ' } response = requests . get ( ' https://exa

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
0 views

Related Articles

How-To

What I learned about X-HEEP by Benchmarking

Medium Programming • 3h ago

No more Chinese Polestar 3s as production shifts entirely to the US
How-To

No more Chinese Polestar 3s as production shifts entirely to the US

Ars Technica • 4h ago

How-To

The most important 40 mcq with its answers How to use Android visual studio to make a mobile app

Medium Programming • 4h ago

What is Agent Script? How to Build Agents with It in Agentforce
How-To

What is Agent Script? How to Build Agents with It in Agentforce

Medium Programming • 4h ago

I Coded 3 Famous Trading Strategies in Pine Script and Backtested All of Them. None Passed.
How-To

I Coded 3 Famous Trading Strategies in Pine Script and Backtested All of Them. None Passed.

Medium Programming • 5h ago

Discover More Articles