HoloArchivists / twspace-dl

A python module to download twitter spaces.
GNU General Public License v2.0
462 stars 75 forks source link

cookies.txt in netscape format #98

Open muscleriot opened 1 year ago

muscleriot commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Thanks for the project very grateful for the work you have put in. My problem was in getting cookies.txt file in correct format. Took me a long time to find a browser plugin that worked.

Describe the solution you'd like A clear and concise description of what you want to happen.

Simply point the user to use browser plugins. I used the Chome extension 'Cookie-Editor' which allow to save cookies.txt for twitter in netscape format. (Works in brave)

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Tried manually writing cookies.txt - took hours and didn't work! Found a chrome extension called cookies-editor which wrote the cookies.txt in netscape format in a second. Then I could use twspace without a problem!

Additional context Add any other context or screenshots about the feature request here. The extension I used is here: https://chrome.google.com/webstore/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm

mikelei8291 commented 1 year ago

@Ryu1845 Should we include some suggestions for extensions in the README.md file? Given that the Netscape cookies file format is quite obscure and would normally be generated by programs instead of written by hand.

Or should we consider using a simpler format for the cookies? Like key=value pairs separated by new line characters? The current implementation is only looking for key<spaces>value with regex in the cookies file despite asking for the complete file structure.

Ryu1845 commented 1 year ago

I think suggestions for extensions is what makes the most sense. I don't think people should have to manually copy their cookies to a file with a special format

mikelei8291 commented 1 year ago

OK I'll add some links to extensions in the README.md file and explain this a bit.

edrozenberg commented 9 months ago

Would be great to be able to just pass in the required parameters on the cli, for ex. twitter sets values for these items in my session, _twitter_sess, auth_token, ct0, multiple guest_id____ items etc. Would be great to pass to the cli directly whichever of these values it needs. Having to figure out how to export and format cookie values into a cookie file or which non-malicious extension they should use in which browser means 99% of the users of this tool will just give up.

luqasz commented 1 month ago

Good that I've found this issue. Otherwise I wouldn't be able to use this tool. Please add info how to get cookies.