m13253 / BiliDan

Play videos on Bilibili.com with MPV and Danmaku2ASS
http://m13253.blogspot.com/2014/06/watch-bilibili-with-biligrab-danmaku2ass.html
Other
513 stars 69 forks source link

How to import the cookies with the command --cookie? #43

Closed shuchang769 closed 8 years ago

shuchang769 commented 8 years ago

How can i log into my account automatically?

cnbeining commented 8 years ago
python bilidan.py --cookie "_octo=GH1.1.1911425777.1441768639; _gat=1; _ga=GA1.2.1205854411.1435622856; tz=America%2FNew_York" 

Something like that.

ernestyao commented 8 years ago

I'm using OS X + Safari. I found cookie information looks different from above example. How should I import cookies? I got something like _utma, tma, uTZ etc.

cnbeining commented 8 years ago
_utma, tma, uTZ

is normal. Just put it as what it likes.

m13253 commented 8 years ago

I'm using OS X + Safari. I found cookie information looks different from above example. How should I import cookies? I got something like _utma, tma, uTZ etc.

Open JavaScript console, type document.cookie.

m13253 commented 8 years ago

I will close this, since it is solved.