snap-data.sh
Version:
CLI for SNAP data, which is a collection of more than 50 large networks.
60 lines (40 loc) ⢠1.83 kB
Markdown
CLI for SNAP dataset, which is a collection of more than 50 large networks.<br>
š [Shell](https://www.npmjs.com/package/snap-data.sh),
š [Files](https://unpkg.com/snap-data.sh/),
š [Wiki](https://github.com/nodef/snap-data.sh/wiki/).
This is for quickly fetching [SNAP datasets] that you need right from the CLI.
Currently there is only one command **clone**, where you can provide filters
for specifying exactly which datasets you need, and where to download them. If
a dataset already exists, it is skipped. This summary is shown at the end.
You can install this with `npm install -g snap-data.sh`.
> Stability: [Experimental](https://www.youtube.com/watch?v=L1j93RnIxEo).
<br>
```bash
## Clone soc-LiveJournal1
## : save in current directory
$ snap-data clone --id soc-LiveJournal1
## Clone all temporal datasets
## : save in "/home/user/temporal-networks" directory
$ snap-data clone --type temporal "/home/user/temporal-networks"
## Clone all temporal & directed datasets
## : save in current directory
$ snap-data clone --type "temporal,directed"
```
<br>
<br>
## Index
| Command | Action |
| --------------- | ---------------------------- |
| [clone] | Download SNAP dataset(s). |
<br>
<br>
## References
- [Stanford Large Network Dataset Collection][SNAP datasets]
<br>
<br>
[](https://www.youtube.com/watch?v=3479tkagiNo)<br>
[](https://nodef.github.io)
[](https://zenodo.org/badge/latestdoi/367587608)

[SNAP datasets]: http://snap.stanford.edu/data/index.html
[clone]: https://github.com/nodef/snap-data.sh/wiki/clone