Skip to content

Commit

Permalink
Fetch underlyings (#70)
Browse files Browse the repository at this point in the history
* Add tests

* Clean up fetch

* Fix action

* Refactor set actions

* Clean up code

* Test fetch underlyings

* Add underlying urls to settings

* Update url

* Refactor url

* Add underlying url

* Fix tests

* Update changelog

* Refactor underlying

* Select underlying

* Select underlying

* Implement bookmark processor

* Update readme

* Fix serialize error

* Improve debugging

* Fix domain

* Add todo

* Add underlyings

* Convert underlyings

* Rename urls

* Refactor unwrap

* Format code

* Fix clippy warnings
  • Loading branch information
quambene authored Jan 22, 2024
1 parent 2a2104b commit aa0b9bb
Show file tree
Hide file tree
Showing 25 changed files with 1,354 additions and 535 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Add `action` to `TargetBookmark`
- Add benchmarks for fetching
- Take ignored urls into account in `bogrep import`
- Fetch underlying urls
- changed
- Update to rust 1.75
- Fix duplicate cache files for `bogrep fetch --urls`
Expand Down
198 changes: 198 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ futures = "0.3.28"
html2md = "0.2.14"
readability = "0.2.0"
async-trait = "0.1.73"
scraper = "0.18.1"
parking_lot = "0.12.1"

[dev-dependencies]
assert_cmd = "2.0.12"
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ bogrep -i "reed-solomon code"
- [Edge](#edge)
- [Specify bookmark folders](#specify-bookmark-folders)
- [Ignore URLs](#ignore-urls)
- [Fetch underlying urls](#fetch-underlying-urls)
- [Diff websites](#diff-websites)
- [Manage internal bookmarks](#manage-internal-bookmarks)
- [Request throttling](#request-throttling)
Expand Down Expand Up @@ -184,6 +185,17 @@ usually don't include relevant text to grep.
bogrep config --ignore <url1> <url2> ...
```

## Fetch underlying urls

Fetch the underlying urls of supported websites:

``` bash
bogrep config --underlying <url1> <url2> ...
```

For example, if a specific url for <https://news.ycombinator.com> is
bookmarked, the article of discussion will be fetched and cached.

## Diff websites

Fetch difference between cached and fetched website for multiple urls, and display changes:
Expand Down
Loading

0 comments on commit aa0b9bb

Please sign in to comment.