Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6073311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:15:26+00:00 2026-05-23T10:15:26+00:00

My python program involves going to a user-supplied url and then doing stuff on

  • 0

My python program involves going to a user-supplied url and then doing stuff on the page. Ideally, mistyped urls would be recognized and pop up an error. But if they have the right syntax and just don’t point anywhere, then either an ISP error page or an ad site is loaded instead.

For example:

“http://washingtonn.edu” –> http://search5.comcast.com/?cat=dnsr&con=dsqcy&url=washingtonn.edu

“http://www.amazdon.com/” –> http://www.amazdon.com/

Is there any way to detect these without knowing all the possible pages? The second one might be pretty hard because it’s an actual site, but I’d be happy with catching the first.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:15:26+00:00Added an answer on May 23, 2026 at 10:15 am

    Unless I am misunderstanding your question, what you ask for is impossible, doesn’t make sense, or is far far from trivial.

    If you think about it, other than a 404 error, where you detect that a page does not exist, if a page does exist there is not way of knowing whether the page is “good” or “bad” as this is subjective. It might be possible to apply some general rules, but you can’t make embrace all the possibilities.

    The only way would be something like what Google does with the suggestions, but this would imply a huge database with a list of popularity of websites, and test every time for proximity, but that is far beyond trivial and probably not necessary.

    For handling 404 statutes in python you could use lie httplib.

    Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Python program which is going to take text files as input.
I have a simple Python program which uses a read-eval-print loop to read user
Is there a Python program where you can post a status update without going
my Python program can be launched with a range of different options (or subcommands)
Consider this Python program which uses PyGtk and Hippo Canvas to display a clickable
Should I start a Python program with: if__name__ == '__main__': some code... And if
I have a Python program that uses the threading module. Once every second, my
I've got a Python program using PIL to render text, and it works great
In the python program I'm writing, I've got a thread which iterates over a
I have a python program, which runs on the CPython implementation, and inside it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.