Content-based and link-based methods for categorical webpage classification