Quote:
|
Originally Posted by zem52887
yeah I figured that it had something to do with the server moreso than the code, because it's running well again... I can't explain how much I appreciate your help
out of curiousity? DDOSing?
|
Websites only have so much bandwidth. If lots of people downloaded ten pages every second, then Yahoo! would become laggy and unresponsive, so Yahoo!'s servers block people who are downloading too much, too fast.
It's also common courtesy not to stress other people's servers. Put in a sleep(1) in the loop and you'll be being a lot more polite.
Malicious computer users deliberately try to take too much bandwidth from other servers. This can cause servers to go down under the strain, which means the company will lose business. This is called a Denial of Service attack, or a DOS attack. When a denial of service attack comes from many different computers, it's called a distributed denial of service attack, or a DDOS attack.
Also, look up try/except blocks in the Python tutorial. That information will come in handy later.