02:59:55 @kPherox@pl.kpherox.dev
ChatGPTに雑にbashスクリプト書かせた
icon

#!/bin/bash

# 引数からリスト名を取得
list_name=$1
# 入力ファイルのパス
input_file="following_accounts.csv"
# 出力ファイルのパス
output_file="lists.csv"

# 入力ファイルから2行目以降のデータを読み取り、リスト名とともに出力ファイルに書き込む
tail -n +2 "$input_file" | cut -d ',' -f 1 | while read -r email; do
    echo "$list_name,$email" >> "$output_file"
done

02:46:35 @kPherox@pl.kpherox.dev
icon

/settings/imports で CSV 使ってインポートできるから雑にフォロイー丸ごとリスト化するってなると follows を export して Account address のカラムだけ取り出して先頭にリスト名のカラムを挿入してヘッダー消したやつを放り込む感じで行けそう

02:32:42 @kPherox@pl.kpherox.dev
2024-04-07 02:03:32 Posting おだら s3_odara@mastodon.hakurei.win
icon

This account is not set to public on notestock.

02:32:33 @kPherox@pl.kpherox.dev
2024-04-07 02:08:39 Posting おだら s3_odara@mastodon.hakurei.win
icon

This account is not set to public on notestock.

00:01:32 @kPherox@pl.kpherox.dev
2024-04-07 00:00:24 Posting おだら s3_odara@mastodon.hakurei.win
icon

This account is not set to public on notestock.