collect_artifact_stats¶
src.utils.collection.collect_artifact_stats
¶
Thin wrappers around cached repository-stats functions.
Provides a unified API for fetching GitHub/Zenodo/Figshare stats and
attaching them to artifact dictionaries in-place. All HTTP work is
delegated to the cached helpers in scrapers.repo_utils.
get_all_artifact_stats(results, url_keys)
¶
Fetch repository stats and attach them to each artifact entry in-place.
For each artifact with a valid URL (GitHub/Zenodo/Figshare), fetches
metadata and merges it into artifact['stats'].
Source code in src/utils/collection/collect_artifact_stats.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |