- Go Web Scraping Quick Start Guide
- Vincent Smith
- 198字
- 2021-07-02 13:58:16
The Request/Response Cycle
Before you can build a web scraper, you must take a second and think about how the internet works. At its core, the internet is a network of computers connected together, discoverable through Domain Lookup System (DNS) servers. When you want to visit a website, your browser sends the website URL to a DNS server, the URL is translated into an IP address, and your browser then sends a request to the machine at that IP address. The machine, called a web server, receives and inspects the request, and makes a decision on what to send back to your browser. Your browser then parses the information sent by the server and displays content on your screen depending on the format of the data. The web server and browser are able to communicate because of the adherence to a global set of rules called the HTTP. In this chapter, you will learn some of the key points on the HTTP request and response cycle.
This chapter covers the following topics:
- What do HTTP requests look like?
- What do HTTP responses look like?
- What are HTTP status codes?
- What do HTTP requests/responses look like in Go?
- 計算機網(wǎng)絡與通信(第2版)
- GPS/GNSS原理與應用(第3版)
- Hands-On Industrial Internet of Things
- Hands-On Chatbots and Conversational UI Development
- TCP/IP入門經(jīng)典(第5版)
- 無人機通信
- PLC、現(xiàn)場總線及工業(yè)網(wǎng)絡實用技術速成
- 物聯(lián)網(wǎng)安全技術
- 數(shù)字調制解調技術的MATLAB與FPGA實現(xiàn):Altera/Verilog版(第2版)
- 智慧光網(wǎng)絡:關鍵技術、應用實踐和未來演進
- 基于性能的保障理論與方法
- 網(wǎng)管第一課:網(wǎng)絡操作系統(tǒng)與配置管理
- 轉化:提升網(wǎng)站流量和轉化率的技巧
- 云工廠:開啟中國制造云時代
- 全聯(lián)網(wǎng)標識服務