p1ass / feeder Goto Github PK
View Code? Open in Web Editor NEW📮 RSS, Atom, and JSON feed generator from multiple RSS, Atom, and any entries you want.
License: BSD 2-Clause "Simplified" License
📮 RSS, Atom, and JSON feed generator from multiple RSS, Atom, and any entries you want.
License: BSD 2-Clause "Simplified" License
The module path github.com/p1ass/feeds
found in your /go.mod
doesn't match the actual path github.com/naoki-kishi/feeds
found in the dependency's go.mod
.
Updating the module path in your go.mod
to github.com/naoki-kishi/feeds
should resolve this issue.
The module path github.com/p1ass/feeds
found in your /go.mod
doesn't match the actual path github.com/naoki-kishi/feeds
found in the dependency's go.mod
.
Updating the module path in your go.mod
to github.com/naoki-kishi/feeds
should resolve this issue.
複数のCrawlerを格納するスライスを、feeder.Crawl(slice...)
と展開して引数に渡すとエラーが出ます。単体でCrawlerを引数に渡し、ループさせると問題なく動作するためRSS側の問題ではないような気がします。
// JSONを受け取り、それをパースしてCrawlerを作りフィードアイテムを取得する
func GetFeeds(rawJSON []byte) []*feeder.Item {
var data []feedType
var combinedItem []feeder.Crawler
json.Unmarshal(rawJSON, &data)
for _, item := range data {
var rss feeder.Crawler
// item.Valueは取得するRSSのURL
rss = feeder.NewRSSCrawler(item.Value)
// combinedItemがCrawlerを格納するスライスになる
combinedItem = append(combinedItem, rss)
}
var feedItem []*feeder.Item
// 以下のようにスライスを展開して渡すとエラーが出る
feedItem, err := feeder.Crawl(combinedItem...)
ErrorHandling(err)
// 以下のようにループを回し、単体のCrawler(ここではitem)をfeeder.Crawl()の引数に渡すと正常に動作する
/* for _, item := range combinedItem {
individualItem, err := feeder.Crawl(item)
ErrorHandling(err)
feedItem = append(feedItem, individualItem...)
} */
return feedItem
}
failed to crawl items: Failed to decode response body.: EOF
exit status 1
The module path github.com/p1ass/feeds
found in your go.mod
doesn't match the actual path github.com/naoki-kishi/feeds
found in the dependency's go.mod
.
Updating the module path in your go.mod
to github.com/naoki-kishi/feeds
should resolve this issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.