All Downloads are FREE. Search and download functionalities are using the official Maven repository.

coursier.util.WebPageCompatibility.scala Maven / Gradle / Ivy

There is a newer version: 2.1.18
Show newest version
package coursier.util

import org.jsoup.Jsoup

import scala.jdk.CollectionConverters._

private[coursier] abstract class WebPageCompatibility {

  def listWebPageRawElements(page: String): Iterator[String] =
    Jsoup.parse(page)
      .select("a")
      .asScala
      .iterator
      .map(_.attr("href"))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy