Skip to content

Commit

Permalink
Make it clear that profile argument can be an HTTP(S) URL (#649)
Browse files Browse the repository at this point in the history
Small documentation enhancement to make it clear that browser profile
can be passed as HTTP(S) URL as well.
  • Loading branch information
benoit74 authored Jul 20, 2024
1 parent 88a2fbd commit 1099f4f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/docs/user-guide/browser-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ The profile creation script attempts to detect the username and password fields

## Using Browser Profile with a Crawl

To use a previously created profile with a crawl, use the `--profile` flag or `profile` option. The `--profile` flag can then be used to specify any Brave Browser profile stored as a tarball. Using profiles created with same or older version of Browsertrix Crawler is recommended to ensure compatibility. This option allows running a crawl with the browser already pre-configured, logged in to certain sites, language settings configured, etc.
To use a previously created profile with a crawl, use the `--profile` flag or `profile` option. The `--profile` flag can then be used to specify any Brave Browser profile stored as a tarball. Browser profile can be either stored locally and provided as a path, or available online at any HTTP(S) URL which will be downloaded before starting the crawl. Using profiles created with same or older version of Browsertrix Crawler is recommended to ensure compatibility. This option allows running a crawl with the browser already pre-configured, logged in to certain sites, language settings configured, etc.

After running the above command, you can now run a crawl with the profile, as follows:

Expand Down
10 changes: 5 additions & 5 deletions docs/docs/user-guide/cli-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ Options:
[number] [default: 0]
--dedupPolicy Deduplication policy
[string] [choices: "skip", "revisit", "keep"] [default: "skip"]
--profile Path to tar.gz file which will be ex
tracted and used as the browser prof
ile [string]
--profile Path or HTTP(S) URL to tar.gz file w
hich contains the browser profile di
rectory [string]
--screenshot Screenshot options for crawler, can
include: view, thumbnail, fullPage
[array] [choices: "view", "thumbnail", "fullPage"] [default: []]
Expand Down Expand Up @@ -292,8 +292,8 @@ Options:
[boolean] [default: false]
--shutdownWait Shutdown browser in interactive after this many seconds, if
no pings received [number] [default: 0]
--profile Path to tar.gz file which will be extracted and used as the
browser profile [string]
--profile Path or HTTP(S) URL to tar.gz file which contains the brows
er profile directory [string]
--windowSize Browser window dimensions, specified as: width,height
[string] [default: "1360,1020"]
--proxy [boolean] [default: false]
Expand Down
2 changes: 1 addition & 1 deletion src/create-login-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function cliOpts(): { [key: string]: Options } {

profile: {
describe:
"Path to tar.gz file which will be extracted and used as the browser profile",
"Path or HTTP(S) URL to tar.gz file which contains the browser profile directory",
type: "string",
},

Expand Down
2 changes: 1 addition & 1 deletion src/util/argParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ class ArgParser {

profile: {
describe:
"Path to tar.gz file which will be extracted and used as the browser profile",
"Path or HTTP(S) URL to tar.gz file which contains the browser profile directory",
type: "string",
},

Expand Down

0 comments on commit 1099f4f

Please sign in to comment.