pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)
Res facta quae tamen fingi potuit ([personal profile] pauamma) wrote in [site community profile] dw_dev2023-06-07 01:00 am
Entry tags:

Question thread #122

It's time for another question thread!

The rules:

- You may ask any dev-related question you have in a comment. (It doesn't even need to be about Dreamwidth, although if it involves a language/library/framework/database Dreamwidth doesn't use, you will probably get answers pointing that out and suggesting a better place to ask.)
- You may also answer any question, using the guidelines given in To Answer, Or Not To Answer and in this comment thread.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2023-06-27 12:30 am (UTC)(link)
So the simplest way is going to just be to grab a logged in session browser cookie - I believe it's the ljuniq cookie, specifically. Then you can set that in the Requests object and it'll act as a logged in cookie session.

There's a way to auth through the old XML-RPC api but I would have to look it up - you have to pass an MD5-hashed version of your username and API key to a specific endpoint and you get an auth cookie back.