Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "io"
- "net/http"
- )
- func main() {
- // URL to make the HTTP request to
- url := "https://scrapeme.live/shop"
- // Make the GET request
- resp, _ := http.Get(url)
- defer resp.Body.Close()
- // Read the response body
- bytes, _ := io.ReadAll(resp.Body)
- // Print the body as a string
- fmt.Println("HTML:\n\n", string(bytes))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement