aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader/scraper
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-04-28 10:51:07 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-04-28 10:51:07 -0700
commit1eba1730d1af50ed545f4fde78b22d6fb62ca11e (patch)
tree61f99282f66529b42625a8f335593bdcb461459c /reader/scraper
parent04adf5fdf53951f270923c41171a52575db53e46 (diff)
Move HTTP client to its own package
Diffstat (limited to 'reader/scraper')
-rw-r--r--reader/scraper/scraper.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/reader/scraper/scraper.go b/reader/scraper/scraper.go
index b90cc14..17e6714 100644
--- a/reader/scraper/scraper.go
+++ b/reader/scraper/scraper.go
@@ -11,7 +11,7 @@ import (
"strings"
"github.com/PuerkitoBio/goquery"
- "github.com/miniflux/miniflux/http"
+ "github.com/miniflux/miniflux/http/client"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/reader/readability"
"github.com/miniflux/miniflux/url"
@@ -19,8 +19,8 @@ import (
// Fetch downloads a web page a returns relevant contents.
func Fetch(websiteURL, rules string) (string, error) {
- client := http.NewClient(websiteURL)
- response, err := client.Get()
+ clt := client.New(websiteURL)
+ response, err := clt.Get()
if err != nil {
return "", err
}