Comments (9)
Update: I improved the Firefox instructions.
from ytmusicapi.
Why don't you just download Firefox?
from ytmusicapi.
Thx for the update!
I am currently translating my WinaYo toolkit from Google Music to Youtube Music using ytmusicapi.
(WinaYo is a command line toolkit to convert and import/sync WinAmp playlists (m3u8) to Youtube Music playLists (csv) using Python and ytmusicapi).
So far the authentication method I described above (using Chrome) seems to work.
from ytmusicapi.
Look here for an example of what the headers_auth file looks like.
Fill in what you need (the x-google-user-thingi and the cookie) and I hope you'll be set. Easiest is definitely downloading firefox though.
from ytmusicapi.
Thx.
Already found a method:
• open music.youtube.com in Chrome
• open dev tools (ctrl-shift-i)
• do some action in main page
• goto network tab
• filter on "json"
• look in "header" tab for string "cookie" and copy data
• open headers_auth.json and copy cookie data to "cookie"
from ytmusicapi.
You probably also need the "X-Goog-Visitor-Id" dont you?
from ytmusicapi.
If you're sure your way works, then I'd recomend you add to the reference (I'm happy to add a few lines/comments too because i thought it was kinda hard to understand what to do).
https://github.com/sigma67/ytmusicapi/blob/master/docs/source/setup.rst
When this issue is closed nobody will know how to do it
from ytmusicapi.
You probably also need the "X-Goog-Visitor-Id" dont you?
Only the cookie is required since e96c4f1. Even though I favor Firefox, I'll add instructions for Chromium-based browsers due to their huge market share.
from ytmusicapi.
The cookie is enough for me, I leave all the other parms in headers_auth.json default.
ps. VISITOR_INFO1_LIVE is in the cookie. Is that what you refer to by "X-Goog-Visitor-Id"?
I use these calls:
YTMusic.get_library_playlists()
YTMusic.get_library_upload_songs()
YTMusic.get_playlist()
YTMusic.create_playlist()
YTMusic.delete_playlist()
YTMusic.edit_playlist()
YTMusic.add_playlist_items()
YTMusic.upload_song()
All work OK, except YTMusic.upload_song() doesn't seem to work. I get STATUS_SUCCEEDED, but I can't find the uploaded song when searching for it.
from ytmusicapi.
Related Issues (20)
- signatureCipher when requesting for get_song method HOT 4
- `get_playlist` does not work for all languages HOT 1
- `get_playlist` does not work for all languages
- YouTube music changed their UI of playlist page HOT 2
- get_playlist doen't return info about playlist author HOT 1
- get_album() fails if the album artist is 'Various Artists' HOT 1
- KeyError: 'singleColumnBrowseResultsRenderer' HOT 3
- `get_album` returns invalid artist data for track items in 1.7.4 HOT 1
- `get_playlist` returns `None` for track title HOT 3
- Search Continuations
- KeyError: 'thumbnails' when using `get_playlist` HOT 2
- get_playlist track artists are now None HOT 4
- No way to get all videos from user HOT 5
- "KeyError: navigationEndpoint" with get_album() using certain browseIDs HOT 1
- `search`: playlistId always returns None on albums HOT 1
- playlist_replace_items method HOT 1
- v1.8.0 makes no songs to be found HOT 4
- Empty artists list when searching with filter set to `"songs"`
- Implement clear errors or sanitize requests with `>` or `<` in the playlist title. HOT 4
- `limit` argument passed in `YTMusic.search()` doesn't seem to have any effect.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ytmusicapi.