Skip to content

Commit

Permalink
Add notes on parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jocmp committed Dec 11, 2023
1 parent 8d50d04 commit 6d70f29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
12 changes: 0 additions & 12 deletions feedfinder/src/main/java/com/jocmp/feedfinder/FeedFinder.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,6 @@ import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.net.MalformedURLException
import java.net.URI
import java.net.URL

// Parser
// - XMLFeed
// - JSONFeed
// - HTML
// - Meta Links
// - Body Links
// - XMLFeedGuess (second pass)

// XML can be parsed directly if XML feed
// HTML takes response body

class FeedFinder internal constructor(
private val url: String,
Expand Down
11 changes: 11 additions & 0 deletions technotes/Parsing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## Parser

1. XMLFeed
2. JSONFeed
3. HTML
a. Meta Links
b. Body Links
4. XMLFeedGuess (second pass)

- XML can be parsed directly if XML feed
- HTML takes response body

0 comments on commit 6d70f29

Please sign in to comment.