Need a simple code to check a website in Python—any recommendations? or What’s the best code to check

16 Replies, 984 Views

Subject: Need a simple code to check a website in Python—any recommendations?

Hey everyone,

I'm trying to find a reliable code to check a website python script. Basically, I just wanna see if a site is up or down.

I’ve seen a few examples with `requests` or `urllib`, but not sure which one’s better. Anyone got a working snippet they’ve used before?

Preferably something simple—no fancy error handling needed, just a quick status check.

Thanks in advance!

(Also, if you’ve got tips on making it run periodically, that’d be awesome.)

Messages In This Thread
Need a simple code to check a website in Python—any recommendations? or What’s the best code to check - by - 19-01-2025, 09:08 PM



Users browsing this thread: 1 Guest(s)