When crawling, if response.status_code == 200: Why do you use this phrase?

Asked 2 years ago, Updated 2 years ago, 13 views

When crawling, if response.status_code == 200: Why do you use this phrase?

python

2022-09-20 16:41

1 Answers

HTTP CODE lets you know whether a document (website screen) is a result when requested through the HTTP protocol.

A representative HTTP CODE that the general public would have seen

So, after HTTP Request, to receive a successful response and crawl, we crawl when HTTP CODE is 200.


2022-09-20 16:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.