|
4 | 4 | "bytes"
|
5 | 5 | "encoding/json"
|
6 | 6 | "fmt"
|
7 |
| - "github.com/aafeher/go-microdata-extract/extractors" |
| 7 | + extractor "github.com/aafeher/go-microdata-extract/extractors" |
8 | 8 | "io"
|
9 | 9 | "net/http"
|
10 | 10 | "sync"
|
@@ -136,31 +136,31 @@ func (e *Extractor) Extract(url string, urlContent *string) (*Extractor, error)
|
136 | 136 | processors = append(processors, Processor{
|
137 | 137 | Name: SyntaxOpenGraph,
|
138 | 138 | Func: func() (interface{}, []error) {
|
139 |
| - return extract.ParseOpenGraph(e.url, e.content) |
| 139 | + return extractor.ParseOpenGraph(e.url, e.content) |
140 | 140 | },
|
141 | 141 | })
|
142 | 142 | }
|
143 | 143 | if contains(e.cfg.syntaxes, SyntaxXCards) {
|
144 | 144 | processors = append(processors, Processor{
|
145 | 145 | Name: SyntaxXCards,
|
146 | 146 | Func: func() (interface{}, []error) {
|
147 |
| - return extract.ParseXCards(e.url, e.content) |
| 147 | + return extractor.ParseXCards(e.url, e.content) |
148 | 148 | },
|
149 | 149 | })
|
150 | 150 | }
|
151 | 151 | if contains(e.cfg.syntaxes, SyntaxJSONLD) {
|
152 | 152 | processors = append(processors, Processor{
|
153 | 153 | Name: SyntaxJSONLD,
|
154 | 154 | Func: func() (interface{}, []error) {
|
155 |
| - return extract.JSONLD(e.url, e.content) |
| 155 | + return extractor.JSONLD(e.url, e.content) |
156 | 156 | },
|
157 | 157 | })
|
158 | 158 | }
|
159 | 159 | if contains(e.cfg.syntaxes, SyntaxMicrodata) {
|
160 | 160 | processors = append(processors, Processor{
|
161 | 161 | Name: SyntaxMicrodata,
|
162 | 162 | Func: func() (interface{}, []error) {
|
163 |
| - return extract.W3CMicrodata(e.url, e.content) |
| 163 | + return extractor.W3CMicrodata(e.url, e.content) |
164 | 164 | },
|
165 | 165 | })
|
166 | 166 | }
|
|
0 commit comments