music.163.com | 网易云音乐辅助 - 项目地址 https : //github
kandi X-RAY | music.163.com Summary
kandi X-RAY | music.163.com Summary
项目地址 Pull Requests Welcome. ![] 注: 快捷键要在扩展程序管理页面(chrome://extensions/) 下方的“键盘快捷键”中设置.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of music.163.com
music.163.com Key Features
music.163.com Examples and Code Snippets
Community Discussions
Trending Discussions on music.163.com
QUESTION
I use an online music player called "Netease Cloud Music", and I have multiple playlists in my account, they hold thousands of tracks and are very poorly organized and categorized and held duplicate entries, so I want to export them into an SQL table to organize them.
I have found a way to view the playlists without using the client software, that is, clicking the share button on top of the playlist page and then click "copy link".
But opening the link in any browser other than the client, the playlist will be limited to 1000 tracks.
But I have found a way to overcome it, I installed Tampermonkey and then installed this script.
Now I can view full playlists in a browser.
This is a sample playlist.
The playlists look like this:
The first column holds the songtitle, the second column holds the duration, the third column holds the artist, and the last column holds the album.
The text in the first, third and fourth columns are hyperlinks to the song, artist and album pages respectively.
I don't know a thing about html but I managed to get its data structure.
The thing we need is the table located at xpath //table/tbody
, each row is a childnode of the table named tr(xpath //table/tbody/tr
).
this is a sample row:
...ANSWER
Answered 2021-Jun-07 at 07:39The simplest answer is that you have to add some delay after opening the page with Firefox.get('https://music.163.com/#/playlist?id=158624364&userid=126762751')
before getting the elements with Firefox.find_elements_by_xpath('//table/tbody/tr')
to let the elements on the page loaded. It takes few moments.
So, you can simply add a kind of time.sleep(5)
there.
The better approach is to use expected conditions instead.
Something like this:
QUESTION
...
<a herf="#" class="zbtn znxt">next-page</a>
...
...ANSWER
Answered 2018-Oct-13 at 05:12Try this. It should work. Considering the fact that you know the imports.
QUESTION
I'm trying to use part of an image as volume button.
html code
...ANSWER
Answered 2017-Jun-17 at 10:04Change volume class in your code
QUESTION
I'm trying to get song&singerdata from http://music.163.com/#/artist?id=16686, but I can't get the right response.
I checked on scrapy shell, when I request "music.163.com/#/artist?id=16686", the response is "music.163.com". I didn't know the reason.
Below is the log
...ANSWER
Answered 2017-Jan-16 at 15:27Your start_urls
seem to be incorrect. If you inspect the networks tab and the page source you'll notice that the album/song data is actually contained in an </code> tag which leads to pretty much the same url just without the <code>#</code>:</p>
<pre><code>"http://music.163.com/#/artist/album?id=16686"
# becomes:
"http://music.163.com/artist/album?id=16686"
</code></pre>
<p>Afterwards your song xpath in <code>parse_album</code> is incorrect. I've got it working with this one:</p>
<pre><code>"//ul[@class='f-hide']/li/a/@href[contains(.,'song')]"
</code></pre>
<p>Afterwards everything seems to be working.</p>
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install music.163.com
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page