Last active
January 27, 2020 15:02
-
-
Save kkdai/02e2af4f586208ef1ee678e585a817cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/PuerkitoBio/goquery" | |
) | |
func parseWebUrl(url string) { | |
doc, err = goquery.NewDocument(url) | |
if err != nil { | |
log.Fatal(err) | |
} | |
// 找出所有 class id 名稱為 `r-ent` | |
doc.Find(".r-ent").Each(func(i int, s *goquery.Selection) { | |
//卻無法成功進入.. | |
////.... | |
}) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment