Obtain the desired data from any url and assign it to a variable with Python

Asked 2 years ago, Updated 2 years ago, 22 views

n

python

2022-09-22 15:10

1 Answers

The HTTP protocol works by something called HttpMessage.

The client sending a message to the server is called a request It is called Response when the server sends a message about the request to the client side.

Depending on how the message is delivered, it is divided into GET Request or POST Request.

Please refer to the address at the bottom for details. If you read this document, you'll probably get a lot of help in what you're trying to do.

If you want to do it in Python, use a library called urllib. It doesn't seem to be such a big and complicated problem to use things like Scrapy or BeautifulSoup.

https://developer.mozilla.org/ko/docs/Web/HTTP/Messages


2022-09-22 15:10

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.