We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resp, _ := http.Get("https://storyfm.cn/feed/episodes") t := gofeed.DetectFeedType(resp.Body) fmt.Println(t)
it prints 0
0
should print FeedTypeRSS
FeedTypeRSS
gofeed.NewParser().ParseURL("https://storyfm.cn/feed/episodes")
return error, but
resp, _ := http.Get("https://storyfm.cn/feed/episodes") f, err := rss.Parser{}.Parse(resp.Body)
works fine.
The text was updated successfully, but these errors were encountered:
I have found the reason, the HTML file contains the bom lead to parse failure. Is it possible to solve this problem?
Sorry, something went wrong.
I believe the master branch has a fix for this, see #158 and d5ae839.
It fixed, thanks so much !
No branches or pull requests
Expected behavior
it prints
0
Actual behavior
should print
FeedTypeRSS
return error, but
works fine.
The text was updated successfully, but these errors were encountered: