Skip to content

Web Crawler + GraphQL FP demo (Tagless Final, Cats Effect, Http4s, Sangria, ...)

Notifications You must be signed in to change notification settings

kartavtcev/scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scraper

Web Crawler + GraphQL FP demo.
Some code is based on official Cats Effect demo, Sangria demos.

First, start GraphQLServer for GraphQL (it'll init the DB and the table). Then, start WebCrawler to scrape the page (set up in config).

Example GraphQL query:

{
  news(limit: 100, offset: 0) {
    title
    link
  }
}

Libs used: Sangria, Http4s, Sttp, Cats/Cats Effect, Scala-scraper, Quill. Tagless Final approach.

TODO: Logging, error handling, auth, more tests, docker.

About

Web Crawler + GraphQL FP demo (Tagless Final, Cats Effect, Http4s, Sangria, ...)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published