Skip to content

Commit

Permalink
Merge pull request #2 from mingrammer/patch-1
Browse files Browse the repository at this point in the history
본인 프로필 사진의 변경된 class 적용
  • Loading branch information
pyrasis committed Sep 3, 2016
2 parents 3bcf85c + eeff3fd commit 7faa0e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Unit 66/crawler.go
Expand Up @@ -37,7 +37,7 @@ func parseFollowing(doc *html.Node) []string {
f = func(n *html.Node) {
if n.Type == html.ElementNode && n.Data == "img" { // img 태그
for _, a := range n.Attr {
if a.Key == "class" && a.Val == "avatar left" { // class가 avatar left인 요소
if a.Key == "class" && a.Val == "avatar float-left" { // class가 avatar left인 요소
for _, a := range n.Attr {
if a.Key == "alt" {
fmt.Println(a.Val) // 사용자 이름 출력
Expand Down

0 comments on commit 7faa0e7

Please sign in to comment.