Linuxで動作確認済みです。
まずvirtualenvでpipで必要なライブラリをインストールします。fugashiを使用していますがこの場合mecab-python3でも変わりません。
# MeCab関係
pip install fugashi unidic-lite
# EXEを作成するやつ
pip install pyinstaller
# AFF | |
# 如果你想支持我,可以通过我的邀请链接购买机场 | |
# 感谢支持 | |
# 1. 倾城极速 邀请码: 0jiB5uAA https://qcjs.ovh/#/register?code=0jiB5uAA | |
# 2. superbiu 邀请码: fACfjKC8 https://superbiu.com/#/register?code=fACfjKC8 | |
# 一定要填我的邀请码,不填我哭给你看😭 | |
# mihomo (Clash Meta) 懒人配置 | |
# 版本 V1.21-250619 | |
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33 |
By default on Windows, conda saves new virtual environments to your C:/Users/<your username>/AppData/Local/conda/conda
. (AppData is hidden by default, but you can see it in File Explorer by checking View > Hidden Items.)
conda environments can get pretty big, so if you're running low on hard disk space and have another drive mounted, you can easily move your environment to a directory on the other drive and create a symbolic link to the new location. This way, conda will look in its regular path for the environment and will find it just fine, despite the actual files having been moved elsewhere.
Let's say we want to move the environments to a separate drive, mounted as D:\
. We'll put everything in D:\<your username>
.
Open up Command Prompt, and then enter:
# First, move all the contents of your environments directory over to the new location:
For local development you could also use Nginx with PHP as an replacement for XAMPP.
c:\nginx
c:/nginx/config/nginx.conf
and replace the server { ... }
section with this configuration:import requests | |
import json | |
import random | |
Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
headers = { | |
'Cookie': "Replace Me With REAL COOKIE" , | |
'Pragma': 'no-cache', |
// ==UserScript== | |
// @name YouTube字幕自动选择翻译->中文简体 | |
// @namespace http://tampermonkey.net/ | |
// @version 1.2 | |
// @description translate to Chinese automatically. 自动点击字幕翻译到中文简体 | |
// @author qwertyuiop6 | |
// @match https://www.youtube.com/* | |
// @grant none | |
// ==/UserScript== |