日本好好热aⅴ|国产99视频精品免费观看|日本成人aV在线|久热香蕉国产在线

  • <cite id="ikgdy"><table id="ikgdy"></table></cite>
    1. 西西軟件園多重安全檢測(cè)下載網(wǎng)站、值得信賴的軟件下載站!
      西西首頁(yè) 電腦軟件 安卓軟件 電腦游戲 安卓游戲 排行榜 專題合集

      網(wǎng)易云歌單下載github工具

      • 網(wǎng)易云歌單下載github工具
      • 軟件大小:11.3M
      • 更新時(shí)間:2020-11-26 07:58
      • 軟件語(yǔ)言:中文
      • 軟件廠商:
      • 軟件類別:國(guó)產(chǎn)軟件 / 免費(fèi)軟件 / 下載工具
      • 軟件等級(jí):3級(jí)
      • 應(yīng)用平臺(tái):WinXP, Win7, win8
      • 官方網(wǎng)站:暫無
      • 應(yīng)用備案:
      好評(píng):50%
      壞評(píng):50%

      軟件介紹

      網(wǎng)易云歌單下載github工具,這是一款面向網(wǎng)易云的歌單下載工具,可以快速批量下載網(wǎng)易云賬號(hào)里保存的歌單資源,下載到本地方便您隨時(shí)傾聽。本下載工具由github環(huán)境編寫,下面給出了詳細(xì)的源碼片段,感興趣的朋友們也可以學(xué)習(xí)了解。

      網(wǎng)易云歌單下載github工具

      主界面源碼

      root = Tk()

      root.geometry('590x480+400+260')

      root.title('網(wǎng)易云歌單下載器')

      labell1 = Label(root,text = '請(qǐng)輸入歌單的網(wǎng)頁(yè)鏈接,記得去除#號(hào)哦',font=('微軟雅黑',15))

      labell1.grid()

      entry1 = Entry(root,font=('微軟雅黑',12))

      entry1.grid(row=2,column=0)

      text = Listbox(root, font=('微軟雅黑', 16), width=40, height=10)

      text.grid(row=3, columnspan=1)

      b1 = Button(root, text='開始下載', font=('微軟雅黑', 15),command=music_download)

      b1.grid(row=4, column=0)

      b2 = Button(root, text='退出程序', font=('微軟雅黑', 15), command=root.quit)

      b2.grid(row=4, column=1)

      root.mainloop()

      功能實(shí)現(xiàn)源碼

      soup =BeautifulSoup(response,'lxml')

      music_data = soup.find('ul',class_='f-hide')

      lists = []

      for music in music_data.find_all('a'):

          #print('{}:{}'.format(music.text,music['href']))

          list = []

          music_url = 'http://music.163.com/song/media/outer/url'+ music['href'][5:] + '.mp3'

          print(music_url)

          music_name = music.text

          list.append(music_name)

          list.append(music_url)

          lists.append(list)

      #print(lists)

      os.chdir('.\網(wǎng)易云歌單')

      b = os.getcwd()

      print('當(dāng)前目錄變?yōu)闉椋?#39;, b)

      for i in lists:

          url = i[1]

          name = i[0]

          try:

              print("正在下載",name)

              text.insert(END, '歌曲:{},正在下載。。。'.format(name))

              text.see(END)

              header1 ={"User-Agent":

                            "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36"

              }

              #urllib.request.urlretrieve(url,'./網(wǎng)易云歌單/%s.mp3' % name)

              res = requests.get(url,headers=header1)

              with open(str(name)+'.mp3',"ab")as f:

                  f.write(res.content)

              print('下載成功。。。')

              text.insert(END, '下載完畢:{},可以去聽聽'.format(name))

              text.see(END)

              text.update()

          except:

              pass

      其他版本下載

      發(fā)表評(píng)論

      昵稱:
      表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
      查看所有(0)條評(píng)論 > 字?jǐn)?shù): 0/500

      TOP
      軟件下載