0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

イカリング3をPCブラウザで簡単に閲覧できるようにする方法

Last updated at Posted at 2023-07-22

はじめに

初めまして。きなあんです。Qiita初投稿です。

今回は、イカリング3をPCブラウザで簡単に閲覧できるようにする方法を他の人にも共有したいと思って記事にまとめることにしました。

参考にした記事

イカリング3をPCブラウザで閲覧する方法については下記の記事にとても分かりやすく記載されていました!
s3sの導入方法について書かれた記事ですが、最後のほうに「イカリング3をPCブラウザで閲覧する方法」も記載されています!

ただ、実際にこの方法を試してみたところ、思った以上にgtokenの期限切れが早かったので、簡単にgtokenを取得する方法を共有したいと思います。

gtokenをワンクリックで取得する方法

前準備

上の記事に従ってs3sを使えるようにしておいてください。

pyperclipのインストール

コマンドプロンプト等で下記のコマンドを実行してpyperclipをインストールしてください。

copy_gtoken.cmd
pip install pyperclip

実行ファイルの作成

s3sをcloneしたフォルダ内に下記の2ファイルを作成してください。

image.png

copy_gtoken.cmd
@echo off
python copy_gtoken.py
echo gtoken copy completed!
pause > nul
copy_gtoken.py
import s3s
import pyperclip

def main():
	# トークンを更新する。
	s3s.prefetch_checks(printout=True)

	# トークンをクリップボードにコピーする。
	pyperclip.copy(s3s.GTOKEN)

if __name__ == "__main__":
	main()

copy_gtoken.cmd を実行する。

あとは copy_gtoken.cmd を実行するだけでクリップボードにgtokenがコピーできるようになります!

image.png

以上。

0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?