Content-Length: 272277 | pFad | http://github.com/hecrj/icebreaker/commit/a1699c229b5b67912308e9908017747c2e4b8f39

A2 Split lines of text scraping and update `sipper` · hecrj/icebreaker@a1699c2 · GitHub
Skip to content

Commit

Permalink
Split lines of text scraping and update sipper
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 8, 2025
1 parent 21d55fa commit a1699c2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
15 changes: 14 additions & 1 deletion Cargo.lock

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

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ members = ["core"]
[workspace.dependencies]
icebreaker_core.path = "./core"

# iced.git = "https://github.com/hecrj/iced.git"
# iced.rev = "4bbb5cbc1f8b2a0ee8e09be18071368df3ba5bbd"
iced.path = "../../iced"
sipper.path = "../../sipper"
iced.git = "https://github.com/hecrj/iced.git"
iced.rev = "4bbb5cbc1f8b2a0ee8e09be18071368df3ba5bbd"
# iced.path = "../../iced"

chrono = "0.4"
dirs = "6.0"
Expand All @@ -41,10 +40,11 @@ reqwest = "0.12"
scraper = "0.22"
serde = "1.0"
serde_json = "1.0"
sipper = "0.0.2"
thiserror = "1.0"
tokio = "1.38"
tracing-subscriber = "0.3"
tokio-stream = "0.1"
tracing-subscriber = "0.3"
url = "2.5"
uuid = "1.10"

8 changes: 7 additions & 1 deletion src/screen/conversation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,13 @@ impl Outcome {
pub fn from_data(outcome: plan::Outcome) -> Self {
match outcome {
plan::Outcome::Search(status) => Self::Search(status),
plan::Outcome::ScrapeText(status) => Self::ScrapeText(status),
plan::Outcome::ScrapeText(status) => Self::ScrapeText(status.map(|sites| {
sites
.iter()
.flat_map(|text| text.lines())
.map(str::to_owned)
.collect()
})),
plan::Outcome::Answer(status) => Self::Answer(status.map(Reply::from_data)),
}
}
Expand Down

0 comments on commit a1699c2

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/hecrj/icebreaker/commit/a1699c229b5b67912308e9908017747c2e4b8f39

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy