Skip to content

Commit

Permalink
Update README example.
Browse files Browse the repository at this point in the history
  • Loading branch information
milistu committed May 16, 2024
1 parent 88d54eb commit 995b55e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scraper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@ python scraper/scraper.py --file scraper/urls.txt --output-dir laws_test
- `--output-dir`: Directory to save the JSON files (default is scraper/laws).

## Example
To scrape law articles from a list of URLs in urls.txt and save the output in the `scraper/laws` directory:
To scrape law articles from a single URL (example: Serbian Labor Law) and save the output in the `scraper/laws` directory:
```bash
python scraper/scraper.py --url "https://www.paragraf.rs/propisi/zakon_o_radu.html" --output-dir scraper/laws
```

To scrape law articles from a list of URLs in urls.txt and save the output in the `scraper/laws` directory:
```bash
python scraper/scraper.py --file scraper/urls.txt --output-dir scraper/laws
```
Expand Down

0 comments on commit 995b55e

Please sign in to comment.