[scribus] Get articles content online
niilos at gmx.com
Thu May 3 19:28:08 UTC 2018
Thank you for all your responses ! I will explain more precisely what I’m
trying to do.
- I only want to get the text content from my API.
- It would be great to allow authentification to the API (not mandatory)
- I will create a text frame in scribus, select the style associated and
specify an URL to query the content from.
- I’d like to allow a "refresh". If the URL is replaced by the actual
content, it is lost and the content can’t be loaded again (after a
change for instance) !
I will learn to use the scribus python API. Would it be posible to set
a "source" attribute that contain the remote content URL ? Plus a script
that replace the content of all object that have a "source" attribute ?
I never used such API. If you think it is doable this way, I will try to
implement it !
On Wed, May 02, 2018 at 11:19:43PM +0200, Daniel wrote:
> Hey there,
> I quickly hacked together a scibus script that loads the contents of a
> url which is saved as text in a text box and then sets the text to the
> respective content.
> (it is just for text for now)
> There has to be done very much to improve it and also format everything
> This is also related to this thread
> http://lists.scribus.net/pipermail/scribus/2018-March/054999.html and
> this bug https://bugs.scribus.net/view.php?id=1791
> (sorry niilos, the previous message was intented to be to the list,
> damn, I clicked the wrong button)
> Am 02.05.2018 um 16:41 schrieb ale rimoldi:
> > hi niilos
> >> I’m new on this mailing list but I’m spreading Scribus as an InDesign
> >> alternative for several years now.
> >> I am writing a little booklet each summer with about 10 people and I
> >> am using Scribus to print it. We are writing the articles on a custom
> >> web app. It would be great if we could tell scribus to fetch the
> >> articles content online ! Our web app have a REST API to access the
> >> articles. Is there a Scribus plugin that can get some content online ?
> > this should be doable.
> > with python scripts, as greg already wrote.
> > sadly, i don't know if the loading of html from a file is exposed to the
> > scripter, but it should not be that hard to add if it's not there.
> > i can help you to get the project going. for money or for free
> > depending on the characteristics of your project.
> > ciao
> > a.l.e
> > ___
> > Scribus Mailing List: scribus at lists.scribus.net
> > Edit your options or unsubscribe:
> > http://lists.scribus.net/mailman/listinfo/scribus
> > See also:
> > http://wiki.scribus.net
> > http://forums.scribus.net
> Scribus Mailing List: scribus at lists.scribus.net
> Edit your options or unsubscribe:
> See also:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the scribus