-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple link tags in both rss channel, items and in the univ…
…ersal feed.
- Loading branch information
Showing
22 changed files
with
220 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
module github.com/mmcdole/gofeed | ||
|
||
go 1.14 | ||
go 1.19 | ||
|
||
require ( | ||
github.com/PuerkitoBio/goquery v1.5.1 | ||
github.com/json-iterator/go v1.1.10 | ||
github.com/mmcdole/goxpp v0.0.0-20181012175147-0068e33feabf | ||
github.com/PuerkitoBio/goquery v1.8.0 | ||
github.com/json-iterator/go v1.1.12 | ||
github.com/mmcdole/goxpp v0.0.0-20200921145534-2f3784f67354 | ||
github.com/stretchr/testify v1.3.0 | ||
github.com/urfave/cli v1.22.3 | ||
golang.org/x/net v0.0.0-20200301022130-244492dfa37a | ||
golang.org/x/text v0.3.2 | ||
golang.org/x/net v0.4.0 | ||
golang.org/x/text v0.5.0 | ||
) | ||
|
||
require ( | ||
github.com/andybalholm/cascadia v1.3.1 // indirect | ||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect | ||
github.com/modern-go/reflect2 v1.0.2 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/russross/blackfriday/v2 v2.0.1 // indirect | ||
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"link": "http://example.org", | ||
"links": [ "http://example.org" ], | ||
"items": [], | ||
"version": "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"link": "http://example3.org", | ||
"links": ["http://example.org", "http://example2.org", "http://example3.org"], | ||
"items": [], | ||
"version": "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
Description: rdf channel links | ||
--> | ||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/"> | ||
<channel rdf:about="http://example.org/index.rdf"> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</channel> | ||
</rdf:RDF> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"items": [ | ||
{ | ||
"link": "http://example3.org", | ||
"links": [ | ||
"http://example.org", | ||
"http://example2.org", | ||
"http://example3.org" | ||
] | ||
} | ||
], | ||
"version": "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!-- | ||
Description: rdf item links | ||
--> | ||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/"> | ||
<channel rdf:about="http://example.org/index.rdf"> | ||
<items> | ||
<rdf:Seq> | ||
<rdf:li resource="http://example.org/entry/1" /> | ||
</rdf:Seq> | ||
</items> | ||
</channel> | ||
<item rdf:about="http://example.org/entry/1"> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</item> | ||
</rdf:RDF> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"items": [ | ||
{ | ||
"link": "http://example3.org", | ||
"links": [ | ||
"http://example.org", | ||
"http://example2.org", | ||
"http://example3.org" | ||
] | ||
} | ||
], | ||
"version": "2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- | ||
Description: rss item link | ||
--> | ||
<rss version="2.0"> | ||
<channel> | ||
<item> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"link": "http://example.org", | ||
"links": [ "http://example.org" ], | ||
"items": [], | ||
"version": "2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"link": "http://example3.org", | ||
"links": ["http://example.org", "http://example2.org", "http://example3.org"], | ||
"items": [], | ||
"version": "2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
Description: rss channel links | ||
--> | ||
<rss version="2.0"> | ||
<channel> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</channel> | ||
</rss> |
10 changes: 10 additions & 0 deletions
10
testdata/translator/rss/feed_item_links_-_rss_channel_item_links.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"feedType": "rss", | ||
"feedVersion": "2.0", | ||
"items": [ | ||
{ | ||
"link": "http://example3.org", | ||
"links": ["http://example.org", "http://example2.org", "http://example3.org"] | ||
} | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
testdata/translator/rss/feed_item_links_-_rss_channel_item_links.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- | ||
Description: item link | ||
--> | ||
<rss version="2.0"> | ||
<channel> | ||
<item> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</item> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"feedType": "rss", | ||
"feedVersion": "1.0", | ||
"items": [], | ||
"link": "http://example3.org", | ||
"links": ["http://example.org", "http://example2.org", "http://example3.org"] | ||
} |
10 changes: 10 additions & 0 deletions
10
testdata/translator/rss/feed_links_-_rdf_channel_links.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
Description: rdf channel link(s) | ||
--> | ||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/"> | ||
<channel rdf:about="http://example.org/index.rdf"> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</channel> | ||
</rdf:RDF> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"feedType": "rss", | ||
"feedVersion": "2.0", | ||
"items": [], | ||
"link": "http://example3.org", | ||
"links": ["http://example.org", "http://example2.org", "http://example3.org"] | ||
} |
10 changes: 10 additions & 0 deletions
10
testdata/translator/rss/feed_links_-_rss_channel_links.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- | ||
Description: normal link(s) | ||
--> | ||
<rss version="2.0"> | ||
<channel> | ||
<link>http://example.org</link> | ||
<link>http://example2.org</link> | ||
<link href="http://example3.org" /> | ||
</channel> | ||
</rss> |
Oops, something went wrong.