From 0b1bd43cdfa6b9571f3c812f0f94e3e66796a61b Mon Sep 17 00:00:00 2001 From: James Brown Date: Thu, 15 Aug 2024 11:32:20 +0800 Subject: [PATCH] Update README.md Added `pkg-config` installation tip. Fixed cargo feature related command lines. --- spider_cli/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/spider_cli/README.md b/spider_cli/README.md index a2c8640d6..a52fec819 100644 --- a/spider_cli/README.md +++ b/spider_cli/README.md @@ -10,6 +10,13 @@ On Linux - OpenSSL 1.0.1, 1.0.2, 1.1.0, or 1.1.1 +Note: You need to have `pkg-config` installed otherwise `openssl` will not be recognized by cargo. + +```bash +# On Ubuntu: +apt install pkg-config +``` + ## Usage The CLI is a binary so do not add it to your `Cargo.toml` file. @@ -18,11 +25,11 @@ The CLI is a binary so do not add it to your `Cargo.toml` file. # without headless cargo install spider_cli # with headless -cargo install spider_cli --chrome +cargo install -F chrome spider_cli # with smart mode defaults to HTTP and Headless when needed -cargo install spider_cli --smart +cargo install -F smart spider_cli # with full resources not just web pages -cargo install spider_cli --full_resources +cargo install -F full_resources spider_cli ``` ## Cli