Open fabioscarsi opened 1 month ago
Hi. Glad to hear that you like the plugin 😊
The Unofficial Medium API definitely seems to be support fetching articles made by a specific user.
https://docs.mediumapi.com/#tag/User/paths/~1user~1%7Buser_id%7D/get
Was also considering adding the possibility of sync a list made by a user.
This would of course be limited by the amount of free API calls available each month.
Might take a look at adding these features if I find the time 🙂
Hi @arumie. Thanks a lot for your positive answer. I would really appreciate your development(s), so I hope you can find the time. If I were a coder, I would help you for sure. Just a consideration on quantitative limits: also systematic writers write up to one post daily on Medium, but no more. That's 30 posts a month. The free API calls are 150/month. Probably, it could be enough. Super heavy users could consider paid options ... One more thing: I have a technical doubt. Medium has a paywall. Does it limit fetching by the Unofficial Medium API?
No better reason to get it done than someone actually wanting it, so I also hope that I can find the time. Might even take a look at it this or next weekend. :)
I'm of the same opinion with regards to the free API calls. Heavy users definitely should consider supporting the developer with the paid option anyway.
At the moment it doesn't seem like the paywall is a limit. I think the guy who develops the API is probably the best to answer that question (https://links.nishu.io/).
Thanks, @arumie. Regarding the paywall question, reading the FAQs (https://mediumapi.com/frequently-asked-questions.html), particularly the last one, it seems you are right, and the paywall is not a problem. Anyway, I wrote the developer and will confirm it with you as soon as he answers.
I've added a new feature with the new version 0.3.0: "Add Medium Author" and "Sync Medium Author". I've also added the possibility to automatically add the articles to a specific folder (Folder is "Medium" by default). The author feature will add a folder for the specific author and add all their articles to that folder. Sync with add any articles that hasn't already been added to the folder.
Let me know what you think :)
Wow! @arumie, I'm impressed by your speed. Hat off. I've tried the new version on my system: Obsidian V1.7.4 on MacOS Sequoia 15.0.1.
Anyway, thanks a lot for continuously developing your plugin. (And do you have any suggestions for solving my fetching problem to start some debugging?)
Hi @fabioscarsi
Thank you for you feedback. I've just tried it out myself and I think that I see the problem.
This article doesn't have a title, which I thought always would be there (I'm using some text splitting to try and find it from the markdown). I think I have an idea on how to fix it. So I'll get back to you with a fix :)
Also a great idea with the properties. I might just add them while I'm at it. Might cost an extra API call, but I think it's worth it. :-)
With regards to having the authors in the settings. The Obsidian guys are pretty strict about what is allowed to be in the settings. But I do see what you mean. Maybe I can figure something out at a later date which is a bit easier to manage.
Thanks @arumie I hope not to raise the bar excessively and pretend too much. You are definitely busy with something else. Just consider my feedback as some brainstorming, but I am glad to try the various solutions you are experimenting with.
I think it'll work if you update the plugin now. It did when I tested it with your username on Medium Added the authors to the settings as well, including the possibility to set each author on "autosync", where it'll sync on startup :)
I'll write the one with the directory for each author on the backlog for now, but might get back to that at some point.
I appreciate the feedback and help. It's difficult to know whether the plugin actually works, if there isn't anyone who gives feedback, so thank you.
Both features haven't taken much of my time, so no problem on that front. Just glad that someone actually uses something I made for fun. :-)
Great Job @arumie. Thanks. Now, it works and fetches all the articles smoothly. Without any urgency but just as a memo, consider these details that still don't work, at least In my setting:
Before inserting properties in the workflow, your plugin also downloaded the pictures in my medium posts. Now, it doesn't, neither in the automatic author fetching nor downloading a single post through its link. I uploaded a screenshot as an example.
Hi @fabioscarsi
Sadly the API doesn't send the author name with the article info, but the author ID. I didn't want to use an extra API call in the individual import, just for the name.
With regards to the images, it seems to be the markdown coming from the API when the images has captions with links in them. It results in the following markdown:
![Image by [Fellow Consulting AG](https://www.fellow-consulting.de/)](https://miro.medium.com/1*OAHUmDf7SkFFeYF6Bsa5EQ.png)
Which isn't valid. I don't really want to mess too much with the markdown after getting it from the API, as this might break other stuff. But its manually fixed by removing the link from the image link in the markdown.
Settings should be fixed now :)
Hi @arumie. Yes, the switch in settings is ok. Thanks. Great job! Now, Obsidian is a very sophisticated and functional editor and backup system for Medium writers. The definitive version of the articles is available in the vault for all the plugins ecosystem (e.g., Smart Connections and other AIs). It is a great integrated tool, also thanks to your plugin.
(I have just one more doubt. Doesn't the plugin already know the author when fetching? I haven't read the code, but can't the plugin overwrite that specific field, which is fixed for default in that API call? Anyway, keep this idea for some future review of the code.)
Hi guys, thanks for your plugin. I've been using it for a while. Considering the release of Obsidian Web Clipper, this interesting and well-working plugin risks becoming soon obsolete. @arumie and @dzatrifork, could you imagine a development that transforms Obsidian Medium Importer into an app that automatically syncs an Obsidian folder of articles with the whole set of articles published by a Medium writer? Is it possible? This way, combined with https://github.com/eebmagic/post-medium-draft, we would have a killer suite in Obsidian to work with Medium ...