Update converter.py

This commit is contained in:
Doublefire.Chen
2022-11-04 15:51:26 +08:00
parent 3695896f78
commit c9e00465de
+2 -1
View File
@@ -1,3 +1,4 @@
# coding:utf-8
import os, re, sys, itertools, json, requests, base64, linecache, time, requests, bs4, time, pyautogui, pyperclip, pprint, shutil, platform, subprocess import os, re, sys, itertools, json, requests, base64, linecache, time, requests, bs4, time, pyautogui, pyperclip, pprint, shutil, platform, subprocess
import downloader import downloader
from pathlib import Path #using this module to solve difference path syntax between Mac OS and Windows from pathlib import Path #using this module to solve difference path syntax between Mac OS and Windows
@@ -6,7 +7,7 @@ os.chdir(host_folder) #change path to work path
lyrics_url = downloader.lyrics_url lyrics_url = downloader.lyrics_url
# Read in the jumbled Spotify lyric text # Read in the jumbled Spotify lyric text
with open('lyrics.txt', 'r') as file : with open('lyrics.txt', 'r',encoding='UTF-8') as file :
filedata = file.read() filedata = file.read()
fullstring = filedata fullstring = filedata
substring_403 = "HTTP ERROR 403" substring_403 = "HTTP ERROR 403"