Closed Dronakurl closed 5 months ago
Hi and thanks for the pro-active contribution.
However, I tend to prefer to keep the functionality of this application to the minimum required functionality and avoid adding code that is not strictly needed. I anyway have very little time for maintaining OSS so I want to avoid introducing technical dept which needs to revisited later on again.
The suggested approach introduces complexity that is not really needed from the perspective of zeit-on-tolino. However, maybe we can think of an approach that modifies zeit-on-tolino in way that it does not increase complexity, but at the same time allows you to achieve your goal. How about one of the following approaches:
Let me know what you think. Feel free to open a issue to discuss in more detail.
It is embarrassing: I didn't think about catching the assertion error. That's an easy fix. I also thought about number 3: Would you be interested, if I look into this? It is sad, that there is no other way to upload to tolino than by selenium.
I didn't think about catching the assertion error. That's an easy fix.
Happy to hear. Should indeed be an easy fix :slightly_smiling_face:
I also thought about number 3: Would you be interested, if I look into this?
Yes, certainly. Feel free to give it a try. I'm happy to provide guidance and support (if not too much) in case needed. As mentioned, feel free to open a dedicated issue for it, if you want. In my mind the target should be a standalone repo which publishes the tolino upload functionality to PyPI. If this is achieved, I could refactor the zeit-on-tolino repo and reduce the number of lines quite a bit.
It is sad, that there is no other way to upload to tolino than by selenium.
Indeed. A documented API would make things much easier. However, that is not very common these days. One could of course think about reverse-engineering their API and try communicating with it directly, but I did not want to go down that rabbit hole.
Thank you again for this great code. I want to reuse this for another project to use the tolino upload functionality. Sometimes, there are special characters in the title, like ampersands &, and this always throws an error as the & are somehow masked in the html code of the site. It would be great if it could be an option (set by a secret) to disable the assert
For interest, this is the code to use
zeit-on-tolino
as a package for tolino upload:My other project uses this to pull bedtime stories from a public website and put them as epub on my tolino. I asked the owner of the website if I could publish the code and they declined, so I want to respect that and use it only for me personally.