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7!";d$,0z$C$+$+$C$?J8=q$rDs<($7$?$H$3$m$G!"$"$^$j0UL#$,$J$$$h$&$K;W$($^$7$?$N$G!"=q$-$^$;$s$G$7$?!#!J$J$<$J$i!":n<T<+?H$,(B3.2$B$r?d>)$7$F$$$k>e$K!"(B3.2$B$G$OBP>]J8=q$rLdBj$J$/2r@O$G$-$F$$$k$+$i$G$9!#!K(B
Version 3.1.0 of Beautiful Soup does significantly worse on real-world
HTML than version 3.0.8 does. The most common problems are handling
<script> tags incorrectly,
$B$H$"$j$^$9$N$G!"DL>o$N2r@O$K4X$7$F!"(B3.0.8$B$h$j$b!"%l%Y%k$,Dc$/!"3n$D%9%/%j%W%H%?%0$N2r@O$KLdBj$,$"$k$H$"$j$^$9!#(B
Version 3.1.0 of Beautiful Soup does significantly worse on real-world
HTML than version 3.0.8 does.
$B$4Ds<($$$?$@$$$?!"(B
soup = BeautifulSoup('<html><span class="date">2011/06/08</span></html>')
$B$H$$$&%?%0$O!"K\2H$N8@$&(B real-world HTML $B$N0F7o$K$O3:Ev$7$J$$$N$G!"2r@O$KLdBj$,=P$J$+$C$?$N$@$H;W$$$^$9!#(B
>$B=q$+$l$F$$$J$$!"$H$$$&$b$N$O:$$C$F$7$^$$$^$9!#(B Debian $B$K(B
>$B0&Ce$r;}$C$F$$$k?M$K$O$"$^$j5$;}$A$NNI$$$b$N$G$O$J$$$N$G$O(B
>$B$J$$$G$7$g$&$+!#(B
$B$3$l$O!"9M$($F$b$_$^$;$s$G$7$?!#(B
$B%Q%C%1!<%8:n@.;~$N0MB84X78$NLdBj$J$i$P$o$+$j$^$9$,!"%"%W%j%1!<%7%g%s<+BNF0:n$N%P%0$O!"2?$b(BDebian$B$N%a%s%F%J$5$s$K$OA4$/4X78$N$J$$$3$H$@$H$P$+$j;W$C$F$$$^$7$?!#(B
$B$3$N$X$s$N;d$N9M$(J}$O4V0c$C$F$$$k$N$+$b$7$l$^$;$s$,!"(B
$B%P%0$r<#$9$3$H<+BN$,L\E*$G$O$J$/!"2r@O$G$-$k$3$H$,L\E*$G$"$C$F!":n<T$NG'<1$G$O!"(B3.2$B$,%Y%9%H$G!"(B3.1$B$+$i>h$j49$($m$H8@$C$F$$$k!#$=$7$F!"3+H/$O(B4.0
$B$KF~$C$F$$$k!#$@$C$?$i!"(B3.2$B$rI8=`$K$9$l$P$h$$$@$1!#(B
$B$H$$$&%7%s%W%k$J$b$N$G$9!#(B
$B$7$+$7!":#2s$N;v$G$O!"NI$$JY6/$K$J$j$^$7$?!#(B
$B$45$J,$r32$9J}$b$*$i$l$k$+$b$7$l$^$;$s$N$G!":#8e$O!"$3$N<j$NH/8@$r95$($k$h$&$K$7$?$$$H;W$$$^$9!#(B