Skip to content

Commit

Permalink
Merge pull request #10 from EESSI/documentation_fixes
Browse files Browse the repository at this point in the history
Correct documentation for scraping.
  • Loading branch information
terjekv authored Jan 21, 2024
2 parents c061e63 + ff867da commit 23b4de8
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ And then for every repo it finds (that it's not told to ignore), it grabs:
- cvmfs/<repo>/.cvmfs_status.json
- cvmfs/<repo>/.cvmfspublished

# Usage
## Usage

````python
#!/usr/bin/env python3
Expand All @@ -19,13 +19,15 @@ from cvmfsscraper import scrape, scrape_server
# server = scrape_server("aws-eu-west1.stratum1.cvmfs.eessi-infra.org")

servers = scrape(
servers = [
"aws-eu-west1.stratum1.cvmfs.eessi-infra.org",
"bgo-no.stratum1.cvmfs.eessi-infra.org",
stratum0_servers=[
"stratum0.tld",
],
ignore_repos = [
"ci.eessi-hpc.org",
stratum1_servers=[
"stratum1-no.tld",
"stratum1-au.tld",
],
repos=[],
ignore_repos=[],
)

# Note that the order of servers is undefined.
Expand Down

0 comments on commit 23b4de8

Please sign in to comment.