https://github.com/saaadel/shazam-list
Get your list of shazams
https://github.com/saaadel/shazam-list
shazam
Last synced: 2 months ago
JSON representation
Get your list of shazams
- Host: GitHub
- URL: https://github.com/saaadel/shazam-list
- Owner: saaadel
- License: mit
- Created: 2017-06-25T08:41:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T11:30:06.000Z (almost 8 years ago)
- Last Synced: 2025-01-25T06:24:08.605Z (4 months ago)
- Topics: shazam
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shasam-list
Get your list of shazams1. Log in Shazam.com (via email link for FB account).
2. Click on "My Shazam" link in top menu (Go to https://www.shazam.com/ru/myshazam )
3. Scroll to bottom, wait and repeat this item until you reach the end of list. [Will be automated with script later]
OR, You can automate it with following script: Just copy it and paste in browser address line.
```javascript
javascript: window._scrollIntervalId = setInterval(function(){ var _scrollable = document.querySelector('.root'), _lastScrollTop = window._lastScrollTop = window._lastScrollTop || _scrollable.scrollHeight; if(window._lastScrollTop != _scrollable.scrollTop) { _scrollable.scrollTop = _scrollable.scrollHeight; setTimeout(function(){window._lastScrollTop = _scrollable.scrollTop}, 100); console.log('loading next records...'); } else {clearInterval(window._scrollIntervalId); delete window._scrollIntervalId; console.log('loading finished.'); alert('Whole list loaded.');} }, 5000);
```
NOTE: Some browsers (Chrome?) cut "javascript:" left part of your paste, so you need add this manually in this case.4. Paste following code in your browser address line:
```javascript
javascript: console.log('Your Shazam List... =====================================================================\r\n', Array.prototype.slice.apply(document.querySelector('.panel-bd.panel-bd-wide').children).reduce(function(list, li){list.push(li.querySelector('.artist').textContent.trim() + ' - ' + li.querySelector('.title').textContent.trim()); return list}, []).join('\r\n'), '\r\nEnd of List ========================================================================\r\n');
```
NOTE: Some browsers (Chrome?) cut "javascript:" left part of your paste, so you need add this manually in this case.5. Open Browser console, select output and copy it in clipboard to paste it then somewhere in text file.