[-] TriLinder@lemmy.ml 1 points 1 year ago

Oh, how did I not notice that before? Now should be fixed.

[-] TriLinder@lemmy.ml 2 points 1 year ago

It's just a simple Flask server. I parse the user-agent using the user_agents Python library, apply some conditionals upon the result, render the image using Pillow and send it to the user.

[-] TriLinder@lemmy.ml 1 points 1 year ago

Yup, I'm parsing the user agent with the user_agents Python library.

[-] TriLinder@lemmy.ml 1 points 1 year ago* (last edited 1 year ago)

If you wanted to target a specific user, you could always send a DM with the image

[-] TriLinder@lemmy.ml 2 points 1 year ago

Looks like your home instance hexbear.net is filtering external images.

[-] TriLinder@lemmy.ml 2 points 1 year ago

That's weird. The extension should definitely work with the image, as that's what I used when building this quick demo. Does the content of a site like this update?

[-] TriLinder@lemmy.ml 2 points 1 year ago

Thought about adding the user's location, but was worried PythonAnywhere could somehow cache the image between multiple people.

[-] TriLinder@lemmy.ml 1 points 1 year ago

Yeah, I just use whatever the user_agents Python library gives me as user_agent.os.family.

view more: ‹ prev next ›

TriLinder

joined 1 year ago