New Social Media Site: substack notes #33

Open
opened 3 months ago by jamesapyrich · 3 comments
Collaborator

I've been posting to substack notes.

Here's the procedure.

  1. From the substack publisher's dashboard (url: https://freedomain.substack.com/publish/home)

  2. Click "New post" -> "New note" (the XPath here doesn't appear to be terribly unique, but the "New note" element looks like it's in the page source when the menu isn't expanded, so maybe you can find the button containing the text "New note" inside of the button.pencraft > div.pencraft element hierarchy. Input dialog is only created once this button is clicked.):

image

  1. Input text

  2. Click "image attachment" button in lower left (again, not much help with unique class IDs, but there is a button.pencraft > input[type="file"] hierarchy that might work, not sure how detailed you'd need to be):

image

  1. Attach image and post (again, not much help for XPath, but it is a button.pencraft element containing the text "Post")
I've been posting to substack notes. Here's the procedure. 1. From the substack publisher's dashboard (url: https://freedomain.substack.com/publish/home) 2. Click "New post" -> "New note" (the XPath here doesn't appear to be terribly unique, but the "New note" element looks like it's in the page source when the menu isn't expanded, so maybe you can find the button containing the text "New note" inside of the `button.pencraft > div.pencraft` element hierarchy. Input dialog is only created once this button is clicked.): ![image](/attachments/2c5bea2e-cdd2-4f19-856e-46617107dd14) 3. Input text 4. Click "image attachment" button in lower left (again, not much help with unique class IDs, but there is a `button.pencraft > input[type="file"]` hierarchy that might work, not sure how detailed you'd need to be): ![image](/attachments/1f66fbd9-631a-4bd9-a145-844f2814d087) 5. Attach image and post (again, not much help for XPath, but it is a `button.pencraft` element containing the text "Post")
164 KiB
178 KiB
Poster
Collaborator

Neglected to take a screenshot after the image is attached, it shows up at the bottom of the post.

Neglected to take a screenshot after the image is attached, it shows up at the bottom of the post.
yuriy commented 1 month ago
Owner

Sorry, i never got a notification on this (my fault, i think I might have disabled them) and am just seeing this.
I'll try to take some time this weekend and take a crack at implementing.

Sorry, i never got a notification on this (my fault, i think I might have disabled them) and am just seeing this. I'll try to take some time this weekend and take a crack at implementing.
yuriy added the
Priority-A
label 1 month ago
yuriy commented 2 weeks ago
Owner

Alright, it only took me 2 months to write about 2 dozen lines of code and test it, but latest update has initial support for Substack. They either have a super complex website framework or do a bunch of obfuscation of the HTML, so it might be slightly prone to breaking. Let me know when you run into any breakage.

Alright, it only took me 2 months to write about 2 dozen lines of code and test it, but latest update has initial support for Substack. They either have a super complex website framework or do a bunch of obfuscation of the HTML, so it might be slightly prone to breaking. Let me know when you run into any breakage.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: yuriy/social-media-poster#33
Loading…
There is no content yet.