Skip to content

Instantly share code, notes, and snippets.

@idursun
Last active January 19, 2016 18:18
Show Gist options
  • Save idursun/3ed06eae18cede8004d8 to your computer and use it in GitHub Desktop.
Save idursun/3ed06eae18cede8004d8 to your computer and use it in GitHub Desktop.
SiteParser.scala
package parsers
import java.time.LocalDate
import core.Rezalet
trait SiteParser {
type TitleInfo = (String, LocalDate)
type RezaletProcessor= Rezalet => Unit
def source: String
def parsePage(page: Int)(processor: RezaletProcessor): Boolean
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment