new Engines struct, breaks cookies and frontend
This commit is contained in:
parent
2ca9990e54
commit
e666316995
13 changed files with 134 additions and 154 deletions
|
@ -20,18 +20,19 @@ pub struct Brave {
|
|||
parser: SearchResultParser,
|
||||
}
|
||||
|
||||
impl Brave {
|
||||
impl Default for Brave {
|
||||
/// Creates the Brave parser.
|
||||
pub fn new() -> Result<Brave, EngineError> {
|
||||
Ok(Self {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
parser: SearchResultParser::new(
|
||||
"#results h4",
|
||||
"#results [data-pos]",
|
||||
"a > .url",
|
||||
"a",
|
||||
".snippet-description",
|
||||
)?,
|
||||
})
|
||||
)
|
||||
.expect("somehow you changed the static stings in the binary i guess"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue