ma2za / python-substack

Substack API python implementation
https://pypi.org/project/python-substack/
MIT License
83 stars 16 forks source link

My profile has no USER_ID? #16

Closed danbgoldman closed 11 months ago

danbgoldman commented 1 year ago

My profile page doesn't have a URL of the format shown in the README. It says:

go to your public profile page, in the URL bar of the browser you find the substack address followed by your USER_ID and your username: https://substack.com/profile/[USER_ID]-[username]

But my profile isn't under /profile, and it's just my username, prefaced by an ampersand:

https://substack.com/@danbgoldman

How can I find my user id?

ma2za commented 1 year ago

oh, i didn't know this was a thing. Have you found a solution? I know that you can inspect the headers/body of the post request when saving a draft from the website and the user_id should be included. Let me know.

danbgoldman commented 1 year ago

I think so: If I view the source for my profile page, there is a JSON "user_id" value in several places that looks promising. But I haven't tried it with the API yet.

On Sun, Oct 1, 2023 at 1:46 AM Paolo Mazza @.***> wrote:

oh, i didn't know this was a thing. Have you found a solution? I know that you can inspect the headers/body of the post request when saving a draft from the website and the user_id should be included. Let me know.

— Reply to this email directly, view it on GitHub https://github.com/ma2za/python-substack/issues/16#issuecomment-1742009129, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH5KUKNTQ435PDRBGZXGV3X5EUVBANCNFSM6AAAAAA5FKMGIE . You are receiving this because you authored the thread.Message ID: @.***>

patricker commented 12 months ago

I ran across this issue and updated the instructions in this PR: #23