lduperval Posted July 25, 2022 Share Posted July 25, 2022 Hi, I'm looking to automate my publishing process to medium.com. What I'm trying to do is this: Create a file with a specific name format, e.g. file-YYYY-MM-DD.txt Create an accompanying image: file-YYYY-MM-DD.jpg Open my Medium account Click on the link that allows me to create a new post Take the content of the and insert it in Medium's text editor. If possible, I would like to simulate typing the content of the file to take advantage of the automated formatting in the editor Upload the image and insert it in a specific location in the text editor. This may require multiple steps where the script "types" something, then I upload the image, then continue typing Add specific parameters before publishing the post Then publish button using the provided button Is this something that's feasible, or am I way too ambitious? If there is code somewhere that shows similar implementations, I'd be interested in looking at it, too. Thanks, L Link to comment Share on other sites More sharing options...
rudi Posted July 25, 2022 Share Posted July 25, 2022 the first two steps will be easy, search the help file for _nowcalc() and the macros @year @mon @mday The rest of your points is web browser automation (search general help and support for that). Perhaps it might be a good idea to search "medium" (???) if they have any option for automation? CU, Rudi. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Link to comment Share on other sites More sharing options...
Danp2 Posted July 25, 2022 Share Posted July 25, 2022 Medium offers an API. Have you checked to see if it can be used to automate your processes? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
lduperval Posted July 25, 2022 Author Share Posted July 25, 2022 Hi, Thanks for the responses. Yes, there is an API (https://github.com/Medium/medium-api-docs). I will create the text files (Markdown) with the content on my PC. The images are created also. It's the posting that might prove tricky. I'll search for the web automation documentation. Thanks! L Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now