You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used version 1.99.16 of spider-rs, with features "socks", "real_browser", "spoof", "headers", "fs", "chrome_stealth", "chrome_store_page", "chrome_screenshot" enabled.
ran the example code from the documentation:
use spider::tokio;use spider::website::Website;#[tokio::main]asyncfnmain(){letmut website:Website = Website::new("https://spider.cloud");
website.crawl().await;let links = website.get_links();for link in links {println!("- {:?}", link.as_ref());}}
The following error occurred:
error[E0061]: this function takes 2 arguments but 7 arguments were supplied
--> /Users/hello/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spider-1.99.16/src/page.rs:335:29
|
335 | let page_resource = crate::utils::fetch_page_html(
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
338 | &page,
| ----- unexpected argument of type `&&chromiumoxide::Page`
339 | wait_for,
| -------- unexpected argument of type `&std::option::Option<WaitFor>`
340 | screenshot,
| ---------- unexpected argument of type `&std::option::Option<ScreenShotConfig>`
341 | page_set,
| -------- unexpected argument of type `bool`
342 | openai_config,
| ------------- unexpected argument of type `&std::option::Option<GPTConfigs>`
|
note: function defined here
--> /Users/hello/.cargo/registry/src/index.crates.io-6f17d22bba15001f/spider-1.99.16/src/utils/mod.rs:1149:14
|
1149 | pub async fn fetch_page_html(target_url: &str, client: &Client) -> PageResponse {
| ^^^^^^^^^^^^^^^ ---------------- ---------------
help: remove the extra arguments
|
337 - &client,
338 - &page,
337 + &client,
|
The text was updated successfully, but these errors were encountered:
I used version
1.99.16
ofspider-rs
, with features "socks", "real_browser", "spoof", "headers", "fs", "chrome_stealth", "chrome_store_page", "chrome_screenshot" enabled.ran the example code from the documentation:
The following error occurred:
The text was updated successfully, but these errors were encountered: