Python Web Scraping for Beginners: Complete Step-by-Step Guide (2026)
Learn Python internet scraping step by step, from HTML basics and BeautifulSoup to pagination, data cleaning, dynamic JavaScript pages, and common beginner mistakes.
Apr 9, 2026
Discover step-by-step fixes for the "This site can't be reached" browser error, from simple restarts to DNS changes, to get back online quickly.
Load your browser, type in a URL, but only see “This site can’t be reached”? It's a common browser error that can disrupt your day, whether you're working from home, shopping online, or just browsing for fun. This issue often appears out of nowhere, sparking worries about your device, network, or even a bigger problem. Rest assured, most instances are straightforward to resolve with steps you can handle at home. This guide will break down the causes and step-by-step solutions with prevention tips.
Before diving into fixes, answer these questions to narrow down the cause and jump to the right section. This saves time and matches how most users troubleshoot: Assess, then act.
1. Is it one site or all sites?
One site: Likely site-specific (e.g., downtime or DNS). Start with Step 1 and check outages.
All sites: Network-wide issue. Focus on Steps 1, 3, 4, and 6.
2. Is it one device or multiple?
One device: Local problem (e.g., browser or settings). Try Steps 2, 5, and browser-specific fixes.
Multiple: Router/ISP fault. Prioritize Step 1 and contact support if needed.
3. Did it start after a change? (e.g., update, new software, or network switch)
Yes: Revert changes or check for conflicts in Steps 5 and 6.
If unsure, start from the top—the steps build on each other. Test the site after each one.

When a browser shows “This site can’t be reached,” it means your request never made it to the target server—or the server’s response never returned to your device. Common underlying HTTP codes include:
| Error Code | Likely Cause | Quick Starting Fix |
| ERR_NAME_NOT_RESOLVED | DNS lookup failed (can't find site's IP) | Flush DNS (Step 3) or change servers (Step 4) |
| ERR_CONNECTION_TIMED_OUT | Server didn't respond in time | Check connection (Step 1) or disable VPN (Step 5) |
| ERR_CONNECTION_RESET | Connection dropped midway | Clear cache (Step 2) or reset network (Step 6) |
| ERR_CONNECTION_REFUSED | Server blocked the connection | Disable firewall/antivirus (Step 5) |
Here are the main causes:
1. Internet Connection Problems: Unstable Wi-Fi, modem glitches, or ISP downtime.
2. DNS Issues: Device can't resolve domain names to IPs, often due to outdated cache or faulty servers.
3. Browser Cache and Cookies: Corrupted data causing load failures.
4. Firewall or Antivirus Interference: Overzealous security blocking sites.
5. VPN or Proxy Conflicts: Misrouting traffic, common in 2026 with more hybrid work setups.
6. Server-Side Problems: Rare for this error, but site outages happen.
7. Network Adapter or IP Conflicts: Outdated drivers or IPv6 issues, rising with Windows 11 and macOS updates
If it's site-specific, use tools like DownDetector to check global status. For all sites, inspect your network.
Each step includes why it works, detailed instructions, and tips. Pros: Look for advanced notes.
Why it works: Many errors are just temporary network blips—resetting refreshes the link.
Restart your modem/router: Unplug both for 30 seconds, then plug back in. Wait 1-2 minutes for lights to stabilize. This resets the connection and clears minor glitches.
Switch networks: Try mobile data or a different Wi-Fi. If it works, the issue is your home network—contact your ISP.
Test other sites: Load a few reliable ones. If they work, the problem is site-specific; wait or check for outages.
Wired vs. Wireless: If on Wi-Fi, connect via Ethernet cable for stability.
Pro tip: If you're on public Wi-Fi (like at a cafe), check for login portals. Advanced: Run a speed test (search "speed test" in browser) to log ISP issues.
Why it works: Old data can block fresh connections—clearing forces a reload.
For most browsers(Chrome, Firefox, Edge):
1. Open settings (usually via the three-dot menu in the top right).
2. Go to "Privacy and Security" or similar.
3. Select "Clear browsing data."
4. Check "Cached images and files" and "Cookies and other site data."
5. Set time range to "All time" for a full clear.
6. Click "Clear data" and restart the browser.
Incognito mode test: Open a private window (Ctrl+Shift+N) and try the site. If it loads, cache was the issue—clear as above.
Mobile (Android/iOS): In browser settings > Privacy > Clear data (similar steps)
Difficulty note: This is beginner-friendly but might log you out of sites. Back up passwords if needed.
Beginner tip: This logs you out of sites—use password manager if needed. Advanced: In Chrome 2026+, use chrome://net-internals/#dns to clear DNS cache directly.
Why it works: Removes stale site address data, fixing resolution errors like NXDOMAIN.
On Windows:
1. Search "Command Prompt" > Run as admin.
2. Type ipconfig /flushdns > Enter. (Expect "Successfully flushed" message.)
On macOS:
1. Open Terminal (via Spotlight).
2. Type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and press Enter.
Mobile: Restart your device or toggle airplane mode.
Beginner tip: Copy-paste commands—safe and quick. Advanced: Combine with ipconfig /release and /renew on Windows for IP refresh.
Why it works: Switches from slow ISP DNS to reliable public ones, boosting speed and reliability.
Windows:
1. Right-click network icon > Open Network & Internet settings > Change adapter options.
2. Right-click connection > Properties > IPv4 > Properties.
3. Select manual DNS: 8.8.8.8 (preferred), 8.8.4.4 (alternate) > OK > Restart.
macOS:
1. System Settings > Network > Your connection > Advanced > DNS.
2. Add (+) 8.8.8.8 and 8.8.4.4.
Mobile: Android: Settings > Network > Wi-Fi > Edit network > Advanced > Manual DNS (enter same). iOS: Settings > Wi-Fi > Info (i) > Configure DNS > Manual > Add servers.
Privacy note: For 2026 security, try 1.1.1.1 (encrypted). Advanced: Enable DNS over HTTPS (DoH) in browser settings for extra protection.
Why it works: These tools can mistakenly block traffic—testing isolates them.
Firewall/Antivirus: Disable via app icon or settings > Test site > If works, add browser exception > Re-enable.
VPN/Proxy: Turn off in app or system network settings > Test.
Extensions: Browser menu > Extensions > Disable one-by-one.
Caution: Re-enable security immediately. Beginner: If unsure, skip and seek help. Advanced: Check Windows Event Viewer (search "Event Viewer" > System logs) for block clues.
Why it works: Resets deep configs, fixing driver or protocol issues.
Network Reset:
Update Drivers: Device Manager (Windows) or System Report (macOS) > Network adapters > Update.
Disable IPv6: In adapter properties (Step 4 path) > Uncheck IPv6 > Test (common 2026 fix for timeouts).
Pro note: Use chrome://net-internals/#sockets in Chrome to flush connections.
Users face this error in different contexts. Here’s how to adapt:
One Site: Check DownDetector; if up elsewhere, focus on Steps 2-4. Tip: For one-site issues, if DownDetector shows it's up elsewhere, it might be an IP or regional block—try a proxy to access it from another location and confirm. This can help isolate whether the problem is on your end or external.
All Sites: Steps 1, 3-6; call ISP with speed test results.
One Device: Steps 2, 5; try another browser.
After Update/Change: Revert software; check for IPv6 conflicts.
Browser-Specific:
Update browser/OS monthly (e.g., Chrome: Help > About).
Clear cache regularly (set auto in settings).
Monitor network with speed tests; use reliable DNS.
Scan for malware (Windows Defender or built-in tools).
For remote workers: Test VPN on non-critical sites first.
1. What if it's on mobile?
Follow mobile steps in 2-4; restart app/device.
2. After a 2026 update?
Check release notes; reset network (Step 6).
3. Still stuck?
Note code/symptoms; post on tech forums or contact support.
4. Is it hardware?
Rare—test with another device first.
5. Privacy concerns with DNS change?
Public ones like 8.8.8.8 are secure; opt for DoH.
"This site can't be reached" error might seem daunting at first, but it's often just a matter of systematic checks—from a simple router restart to tweaking DNS settings. Most issues resolve quickly, saving you time and frustration in the long run. By implementing these fixes and preventive habits, you'll not only get back online faster but also build a more reliable digital routine.
< Previous
Next >
Cancel anytime
No credit card required