Skip to content

Commit 89c3410

Browse files
'Add new script' (#7644)
Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com>
1 parent 34b1d70 commit 89c3410

File tree

4 files changed

+165
-0
lines changed

4 files changed

+165
-0
lines changed

ct/headers/scraparr

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
_____
2+
/ ___/______________ _____ ____ ___________
3+
\__ \/ ___/ ___/ __ `/ __ \/ __ `/ ___/ ___/
4+
___/ / /__/ / / /_/ / /_/ / /_/ / / / /
5+
/____/\___/_/ \__,_/ .___/\__,_/_/ /_/
6+
/_/

ct/scraparr.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: JasonGreenC
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/thecfu/scraparr
7+
8+
APP="Scraparr"
9+
var_tags="${var_tags:-arr;monitoring}"
10+
var_cpu="${var_cpu:-2}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-4}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-12}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
27+
if [[ ! -d /opt/scraparr/ ]]; then
28+
msg_error "No ${APP} Installation Found!"
29+
exit
30+
fi
31+
if check_for_gh_release "scraparr" "thecfu/scraparr"; then
32+
msg_info "Stopping Services"
33+
systemctl stop scraparr
34+
msg_ok "Services Stopped"
35+
36+
PYTHON_VERSION="3.12" setup_uv
37+
fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr"
38+
39+
msg_info "Updating Scraparr"
40+
cd /opt/scraparr
41+
$STD uv venv /opt/scraparr/.venv
42+
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
43+
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
44+
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
45+
chmod -R 755 /opt/scraparr
46+
msg_ok "Updated Scraparr"
47+
48+
msg_info "Starting Services"
49+
systemctl start scraparr
50+
msg_ok "Services Started"
51+
msg_ok "Updated Successfully"
52+
fi
53+
exit
54+
}
55+
56+
start
57+
build_container
58+
description
59+
60+
msg_ok "Completed Successfully!\n"
61+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
62+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
63+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:7100${CL}"

frontend/public/json/scraparr.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Scraparr",
3+
"slug": "scraparr",
4+
"categories": [
5+
14
6+
],
7+
"date_created": "2025-07-29",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"interface_port": 7100,
12+
"documentation": "https://github.com/thecfu/scraparr/blob/main/README.md",
13+
"website": "https://github.com/thecfu/scraparr",
14+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/svg/scraparr-dark.svg",
15+
"config_path": "/scraparr/config/config.yaml",
16+
"description": "Scraparr is a Prometheus exporter for the *arr suite (Sonarr, Radarr, Lidarr, etc.). It provides metrics that can be scraped by Prometheus to monitor and visualize the health and performance of your *arr applications.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/scraparr.sh",
21+
"resources": {
22+
"cpu": 2,
23+
"ram": 1024,
24+
"hdd": 4,
25+
"os": "debian",
26+
"version": "12"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": [
35+
{
36+
"text": "Edit config file then restart the scraparr service: `systemctl restart scraparr`",
37+
"type": "info"
38+
}
39+
]
40+
}

install/scraparr-install.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: JasonGreenC
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/thecfu/scraparr
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
PYTHON_VERSION="3.13" setup_uv
17+
fetch_and_deploy_gh_release "scrappar" "thecfu/scraparr" "tarball" "latest" "/opt/scraparr"
18+
19+
msg_info "Installing Scraparr"
20+
cd /opt/scraparr
21+
$STD uv venv /opt/scraparr/.venv
22+
$STD /opt/scraparr/.venv/bin/python -m ensurepip --upgrade
23+
$STD /opt/scraparr/.venv/bin/python -m pip install --upgrade pip
24+
$STD /opt/scraparr/.venv/bin/python -m pip install -r /opt/scraparr/src/scraparr/requirements.txt
25+
chmod -R 755 /opt/scraparr
26+
mkdir -p /scraparr/config
27+
mv /opt/scraparr/config.yaml /scraparr/config/config.yaml
28+
chmod -R 755 /scraparr
29+
msg_ok "Installed Scraparr"
30+
31+
msg_info "Creating Service"
32+
cat <<EOF >/etc/systemd/system/scraparr.service
33+
[Unit]
34+
Description=Scraparr
35+
Wants=network-online.target
36+
After=network.target
37+
38+
[Service]
39+
Type=simple
40+
WorkingDirectory=/opt/scraparr/src
41+
ExecStart=/opt/scraparr/.venv/bin/python -m scraparr.scraparr
42+
Restart=always
43+
44+
[Install]
45+
WantedBy=multi-user.target
46+
EOF
47+
systemctl enable -q --now scraparr
48+
msg_ok "Configured Service"
49+
50+
motd_ssh
51+
customize
52+
53+
msg_info "Cleaning up"
54+
$STD apt-get -y autoremove
55+
$STD apt-get -y autoclean
56+
msg_ok "Cleaned"

0 commit comments

Comments
 (0)