How would I get an avatar's png in python?

So I have been experimenting with discord bots and python, and wanted to get an avatar’s png, the problem is I don’t know how to get an avatar’s png url because differently from an item’s png, it does not use the player/item id.

For Example:
https://www.roblox.com/catalog/23962538/Uncle-Seans-Top-Hat
to get the png, I would simply just do “https://www.roblox.com/thumbs/asset.ashx?width=75&height=75&assetid=23962538” and it would give me the item’s png
image

As for Avatars, I do not know how to get to the url based on the id of user

For Example:
https://www.roblox.com/users/1030757071/profile
https://www.roblox.com/thumbs/asset.ashx?width=75&height=75&assetid=1030757071” does not get to the avatar’s png

Any help wouuld be appreciated, again this is for python and not roblox studio, thank you for your time :smiley:

This post should be useful.

4 Likes

thank you for your help on providing this post :smiley: