PuerkitoBio / goquery

A little like that j-thing, only in Go.
BSD 3-Clause "New" or "Revised" License
13.9k stars 917 forks source link

Incorrect parse #56

Closed gogames closed 9 years ago

gogames commented 9 years ago

Hi, I got a problem when parsing the website:

Saturday Night Live: The Best of Chris Kattan (2004)
Saturday Night Live: The Best of Chris Kattan (2003) (TV)
Now Playing
Movie/TV News
My Movies
DVD/Video
IMDbTV
Message Boards
Showtimes & Tickets
IMDbPro
IMDb Resume
 Login | Register
Home |
Top Movies |
Photos |
Independent Film |
GameBase |
Browse |
Help
All
Titles
\- TV Episodes
My Movies
Names
Companies
Keywords
Characters
Quotes
Bios
Plots
more |
tips
SHOP SATURDAY...
Amazon.com
Amazon.ca
Amazon.co.uk
Amazon.de
Amazon.fr
DVDVHSCDAll
DVDVHSCDAll
DVDVHSCDAll
DVDVHSCDAll
DVDVHSCDAll
IMDb >
Saturday Night Live: The Best of Chris Kattan (2003) (TV)
Quicklinks
main detailscombined detailsfull cast and crewcompany creditsuser commentsuser ratingsrecommendationsplot keywordsmovie connectionsrelease dates
Top Links
-trailers
-full cast and crew
-trivia
-official sites
-memorable quotes
Overview
main details
-combined details
-full cast and crew
-company credits
-tv schedule
Promotional
-taglines
-trailers
-posters
-photo gallery
Awards & Reviews
-user comments
-external reviews
-newsgroup reviews
-awards
-user ratings
-recommendations
-message board
Plot & Quotes
-plot summary
-plot keywords
-Amazon.com summary
-memorable quotes
Fun Stuff
-trivia
-goofs
-soundtrack listing
-crazy credits
-alternate versions
-movie connections
-FAQ
Other Info
-merchandising links
-box office/business
-release dates
-filming locations
-technical specs
-laserdisc details
-DVD details
-literature listings
-news articles
External Links
-showtimes
-official sites
-miscellaneous
-photographs
-sound clips
-video clips
Saturday Night Live: The Best of Chris Kattan (2003) (TV)
advertisement
photos
board
trailer
details
Register or login to rate this title
User Rating:
4.8/10
(57 votes)
more
Release Date:
27 September 2003 (USA)
more
Genre:
Comedy more
Plot Keywords:
Character Name In Title
User Comments:
Lets get physical
more
(Credited cast)Chris Kattan ... Various Characters (archive footage)more
Runtime:
USA:76 min
Country:
USA
Language:
English
Color:
Color
MOVIEmeter:
16% since last week
why?
Company:
Broadway Video
more
Movie Connections:
Spoofs The Lord of the Rings: The Two Towers (2002)
more
This FAQ is empty. Add the first question.
(Comment on this title)
1 out of 1 people found the following comment useful:-
Lets get physical, 12 November 2005
Author:
Chip_douglas from Rijswijk (ZH), The Netherlands
Chris Kattan might well be the greatest physical comedian they ever had
on Saturday Night Live. Only Jim Carrey's work on "In Living Color"
surpasses him. Like Carrey, Kattan is the kind of comedian that you
either love or hate. Or you might love him at first but eventually
he'll get on your nerves. Kattan also has this gay stigma hanging over
his head, hindering a successful movie career like Carrey and
Groundlings pal Will Ferrell. At least for now. This compilation opens
with the first appearance of the Roxbury Guys, when Will and Chris were
just trying out the idea and had not even found Haddaway's 'What is
Love' to head-bop to. This made me expect some more Roxbury dancing
later on in the show, but no such luck.His many recurring characters appear one by one, including one of the
most elaborate Mango skits they ever did (Mango vs. J-lo), Suel
Forrester in court, the Zimmermans at Halloween (Chris and Cheri Oteri
are a great match) and that other pair of dancing brothers, the
DeMarco's, auditioning for Bon Jovi. For some reason Jovi seems to drag
out the ending long past the stage of being funny. When it comes to his
most energetic and far out character of all, I would not have picked
the Mr. Peepers skit with Kevin Spacey as the best one. The ones with
The Rock and Tom Hanks were much funnier. Besides, I think they edited
it somewhat. My absolute favourite in this collection has to be the
'How do you say? Ah Yes! Show' with Antonio Banderas and Jennifer Love
Hewitt.During a montage of celebrity impressions it becomes clear Kattan is
not the best mimic on the show, but his take on Pacino is absolutely
hilarious. The White trash couple is pretty disgusting, especially when
Amy Poehlerwants to suck his toe-thumb (don't ask). As usual Fred
Armisen steals the show in the Buddy Mills sketch, and when they get to
Goth Talk, it's the one where his character Azrael Abbys is pretending
to be dead. Well I guess he was always more of a sidekick in that one
anyway. There are three clips from Weekend update, one with Norm and
two with Jimmy and Tina. Kattan's first appearance as Gollum is
actually taken from the Superbowl Half-time show. It ends with the
Siamese twins skit with Jennifer Garner that has Chris playing a
normal, boring straight guy. I guess they had to reinforce that image
one last time. Either that or it was an excuse to have more Jimmy
Fallon in there. They should have put in another round of Roxbury if
you ask me.9 out of 10
Was the above comment useful to you?
more
Discuss this title with other users on IMDb message board for Saturday Night Live: The Best of Chris Kattan (2003) (TV)
If you enjoyed this title, our database also recommends:
A Bug's Life
Meet the Parents
Keeping the Faith
The Opposite of Sex
The Big Kahuna
IMDb User Rating:
IMDb User Rating:
IMDb User Rating:
IMDb User Rating:
IMDb User Rating:
Add a recommendation |
Show more recommendations
You may report errors and omissions on this page to the IMDb database managers. They will be examined and if approved will be included in a future update. Clicking the 'Update' buttonwill take you through a step-by-step process.
Home | Search | Now Playing | News | My Movies | Games | Boards | Help | US Movie Showtimes | Top 250 | Register | RecommendationsBox Office | Index | Trailers |
Jobs | IMDbPro.com - Free Trial | IMDb Resume
Copyright © 1990-2007 Internet Movie Database Inc.
Terms and Privacy Policy under which this service is provided to you.
An company. 
Advertise on IMDb. 
License our content.

Back to Movie index

The golang code is like this:

for _, n := range doc.Find("body").Children().Not("style").Not("script").Nodes {
          buf.WriteString(getNodeText(n))
}

What I finally get is only the "Back to Movie index". I dont quite understand why.

gogames commented 9 years ago

the source code of the site is


<html><head><meta http-equiv="Content-Language" content="en-us"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Saturday Night Live: The Best of Chris Kattan (2004)</title></head><body><br>Saturday Night Live: The Best of Chris Kattan (2003) (TV)<br>Now Playing<br>Movie/TV News<br>My Movies<br>DVD/Video<br>IMDbTV<br>Message Boards<br>Showtimes &amp; Tickets<br>IMDbPro<br>IMDb Resume<br>&nbsp;Login | Register<br>Home |<br>Top&nbsp;Movies |<br>Photos |<br>Independent&nbsp;Film |<br>GameBase |<br>Browse |<br>Help<br>All<br>Titles<br>- TV Episodes<br>My Movies<br>Names<br>Companies<br>Keywords<br>Characters<br>Quotes<br>Bios<br>Plots<br>more |<br>tips<br>SHOP SATURDAY...<br>Amazon.com<br>Amazon.ca<br>Amazon.co.uk<br>Amazon.de<br>Amazon.fr<br>DVDVHSCDAll<br>DVDVHSCDAll<br>DVDVHSCDAll<br>DVDVHSCDAll<br>DVDVHSCDAll<br>IMDb &gt;<br>Saturday Night Live: The Best of Chris Kattan (2003) (TV)<br>Quicklinks<br>main detailscombined detailsfull cast and crewcompany creditsuser commentsuser ratingsrecommendationsplot keywordsmovie connectionsrelease dates<br>Top Links<br>-trailers<br>-full cast and crew<br>-trivia<br>-official sites<br>-memorable quotes<br>Overview<br>main details<br>-combined details<br>-full cast and crew<br>-company credits<br>-tv schedule<br>Promotional<br>-taglines<br>-trailers<br>-posters<br>-photo gallery<br>Awards & Reviews<br>-user comments<br>-external reviews<br>-newsgroup reviews<br>-awards<br>-user ratings<br>-recommendations<br>-message board<br>Plot & Quotes<br>-plot summary<br>-plot keywords<br>-Amazon.com summary<br>-memorable quotes<br>Fun Stuff<br>-trivia<br>-goofs<br>-soundtrack listing<br>-crazy credits<br>-alternate versions<br>-movie connections<br>-FAQ<br>Other Info<br>-merchandising links<br>-box office/business<br>-release dates<br>-filming locations<br>-technical specs<br>-laserdisc details<br>-DVD details<br>-literature listings<br>-news articles<br>External Links<br>-showtimes<br>-official sites<br>-miscellaneous<br>-photographs<br>-sound clips<br>-video clips<br>Saturday Night Live: The Best of Chris Kattan (2003) (TV)<br>advertisement<br>photos<br>board<br>trailer<br>details<br>Register or login to rate this title<br>User Rating:<br>4.8/10<br>(57 votes)<br>more<br>Release Date:<br>27 September 2003 (USA)<br> more<br>Genre:<br>Comedy more<br>Plot Keywords:<br>Character&#160;Name&#160;In&#160;Title<br>User Comments:<br>Lets get physical<br>more<br>(Credited cast)Chris Kattan ... Various Characters (archive footage)more<br>Runtime:<br>USA:76 min<br>Country:<br>USA<br>Language:<br>English<br>Color:<br>Color<br>MOVIEmeter:<br> 16% since last week<br>why?<br>Company:<br>Broadway Video<br>more<br>Movie Connections:<br>Spoofs The Lord of the Rings: The Two Towers (2002)<br>more<br>This FAQ is empty. Add the first question.<br>(Comment on this title)<br>1 out of 1 people found the following comment useful:-<br>Lets get physical, 12 November 2005<br>Author:<br>Chip_douglas from Rijswijk (ZH), The Netherlands<br>Chris Kattan might well be the greatest physical comedian they ever had<br>on Saturday Night Live. Only Jim Carrey's work on &quot;In Living Color&quot;<br>surpasses him. Like Carrey, Kattan is the kind of comedian that you<br>either love or hate. Or you might love him at first but eventually<br>he'll get on your nerves. Kattan also has this gay stigma hanging over<br>his head, hindering a successful movie career like Carrey and<br>Groundlings pal Will Ferrell. At least for now. This compilation opens<br>with the first appearance of the Roxbury Guys, when Will and Chris were<br>just trying out the idea and had not even found Haddaway's 'What is<br>Love' to head-bop to. This made me expect some more Roxbury dancing<br>later on in the show, but no such luck.His many recurring characters appear one by one, including one of the<br>most elaborate Mango skits they ever did (Mango vs. J-lo), Suel<br>Forrester in court, the Zimmermans at Halloween (Chris and Cheri Oteri<br>are a great match) and that other pair of dancing brothers, the<br>DeMarco's, auditioning for Bon Jovi. For some reason Jovi seems to drag<br>out the ending long past the stage of being funny. When it comes to his<br>most energetic and far out character of all, I would not have picked<br>the Mr. Peepers skit with Kevin Spacey as the best one. The ones with<br>The Rock and Tom Hanks were much funnier. Besides, I think they edited<br>it somewhat. My absolute favourite in this collection has to be the<br>'How do you say? Ah Yes! Show' with Antonio Banderas and Jennifer Love<br>Hewitt.During a montage of celebrity impressions it becomes clear Kattan is<br>not the best mimic on the show, but his take on Pacino is absolutely<br>hilarious. The White trash couple is pretty disgusting, especially when<br>Amy Poehlerwants to suck his toe-thumb (don't ask). As usual Fred<br>Armisen steals the show in the Buddy Mills sketch, and when they get to<br>Goth Talk, it's the one where his character Azrael Abbys is pretending<br>to be dead. Well I guess he was always more of a sidekick in that one<br>anyway. There are three clips from Weekend update, one with Norm and<br>two with Jimmy and Tina. Kattan's first appearance as Gollum is<br>actually taken from the Superbowl Half-time show. It ends with the<br>Siamese twins skit with Jennifer Garner that has Chris playing a<br>normal, boring straight guy. I guess they had to reinforce that image<br>one last time. Either that or it was an excuse to have more Jimmy<br>Fallon in there. They should have put in another round of Roxbury if<br>you ask me.9 out of 10<br>Was the above comment useful to you?<br>more<br>Discuss this title with other users on IMDb message board for Saturday Night Live: The Best of Chris Kattan (2003) (TV)<br>If you enjoyed this title, our database also recommends:<br>A Bug's Life<br>Meet the Parents<br>Keeping the Faith<br>The Opposite of Sex<br>The Big Kahuna<br>IMDb User Rating:<br>IMDb User Rating:<br>IMDb User Rating:<br>IMDb User Rating:<br>IMDb User Rating:<br>Add a recommendation |<br>Show more recommendations<br>You may report errors and omissions on this page to the IMDb database managers. They will be examined and if approved will be included in a future update. Clicking the 'Update' buttonwill take you through a step-by-step process.<br>Home&nbsp;| Search&nbsp;| Now Playing&nbsp;| News&nbsp;| My Movies&nbsp;| Games&nbsp;| Boards&nbsp;| Help&nbsp;| US&nbsp;Movie&nbsp;Showtimes&nbsp;| Top&nbsp;250&nbsp;| Register&nbsp;| RecommendationsBox&nbsp;Office | Index | Trailers |<br>Jobs&nbsp;| IMDbPro.com&nbsp;-&nbsp;Free&nbsp;Trial | IMDb Resume<br>Copyright &copy; 1990-2007 Internet Movie Database Inc.<br>Terms and Privacy Policy under which this service is provided to you.<br>An  company.&nbsp;<br>Advertise on IMDb.&nbsp;<br>License our content.<br><p><a href="../Movie.htm">Back to Movie index</a></p></body></html>

FYI, the url is http://www.cse.ust.hk/~ericzhao/COMP4321/TestPages/Movie/288.html but I am not sure if you have access to it or not.

Thank you for help!

mna commented 9 years ago

What's the issue?

gogames commented 9 years ago

I think I should get those words, right? Not just the four words "back to movie index".

gogames commented 9 years ago

My mistake. LOL!