Skip to content

Commit

Permalink
Remove Hiver scraper and fix typo in HiverScraper
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel401 committed Feb 7, 2024
1 parent c948fd9 commit 38032a4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions handlers/sync_with_sqlite.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ var scrapers = []struct {
name: "Atlassian",
scraper: services.AtlassianScrapper,
},
{
name: "Hiver",
scraper: services.HiverScraper,
},
// {
// name: "Hiver",
// scraper: services.HiverScraper,
// },
{
name: "Niyo Solutions",
scraper: services.NiyoSolutionScraper,
Expand Down
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ func setupRouter() *gin.Engine {
scraperRoute.GET("/google", func(c *gin.Context) {
handlers.HandleScrapingRequest(c, services.GoogleScraper)
})
scraperRoute.GET("/hiver", func(c *gin.Context) {
handlers.HandleScrapingRequest(c, services.HiverScraper)
})
///hiver source is not working
scraperRoute.GET("/hiver", func(c *gin.Context) {
handlers.HandleScrapingRequest(c, services.HiverScraper)
})
scraperRoute.GET("/fi", func(c *gin.Context) {
handlers.HandleScrapingRequest(c, services.EpfiScraper)
})
Expand Down
4 changes: 2 additions & 2 deletions services/hiverScrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"goscraper/models"
"time"

"github.com/gocolly/colly/v2"
)

Expand Down Expand Up @@ -34,8 +35,7 @@ func HiverScraper() ([]models.Job, error) {
Location: location,
CreatedAt: time.Now().Unix(),
Company: "Hiver",
ImageURL: "https://upload.wikimedia.org/wikipedia/commons/1/17/Hiver_logo.png",
// Add other fields as needed
ImageUrl: "https://upload.wikimedia.org/wikipedia/commons/1/17/Hiver_logo.png",
})
})

Expand Down

0 comments on commit 38032a4

Please sign in to comment.