mirror of
https://github.com/Matewoo/spotify-lyric-downloader.git
synced 2026-11-18 13:52:50 +01:00
Update converter.py
This commit is contained in:
+2
-1
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user