Skip to content

Commit

Permalink
Merge pull request #117 from cradle8810/105_SNS_download
Browse files Browse the repository at this point in the history
SNS ダウンロードツールの記述
  • Loading branch information
cradle8810 authored May 2, 2024
2 parents 0389f7d + 57294f6 commit a29c909
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
.vscode/**
4 changes: 4 additions & 0 deletions console.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
ansible.builtin.import_tasks:
file: tasks/console/install_rename.yml

- name: Install Pre-builded SNS downloaders
ansible.builtin.import_tasks:
file: tasks/sns_dl_linux.yml

- name: Stop Apt-daily
ansible.builtin.import_tasks:
file: tasks/stop-apt-daily.yml
25 changes: 25 additions & 0 deletions tasks/sns_dl_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
- name: Install Dir mkdir(/opt/bin/)
ansible.builtin.file:
path: /opt/bin
state: directory
mode: '0755'

- name: Download yt-dlp
ansible.builtin.get_url:
url: https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
dest: /opt/bin/yt-dlp
checksum: sha256:6a04fddc3609d22736c39a23ba61913332689ade8380892aac846f4ced753c7b
mode: "0755"

- name: Download twitter-loader
ansible.builtin.unarchive:
src: "https://github.com/mmpx12/twitter-media-downloader/releases/download/v1.13.2/twitter-media-downloader-v1.13.2-linux-amd64.tar.gz"
dest: /opt/bin/
remote_src: true
mode: "0755"

# https://github.com/instaloader/instaloader
- name: Download instaloader
ansible.builtin.pip:
name: instaloader

0 comments on commit a29c909

Please sign in to comment.