[scribus] Get articles content online

niilos niilos at gmx.com
Sun May 6 14:50:16 UTC 2018


Hey,

So I wrote my first python scribus script that is very similar to those
you sent to me ! I don’t know how to retrive the attributes of an object
(didn’t find the documentation). Is it possible ? If it is not I will
have to use the object’s name to store the URL !

Thanks !
Niilos

On Thu, May 03, 2018 at 09:28:08PM +0200, niilos wrote:
> Hello !
> 
> 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 !
> 
> Regards,
> Niilos.
> 
> 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)
> > 
> > https://github.com/dadosch/scribus_script_get_external_text
> > 
> > 
> > There has to be done very much to improve it and also format everything
> > right.
> > 
> > 
> > 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)
> > 
> > 
> > 
> > Greetings,
> > 
> > Daniel
> > 
> > 
> > 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:
> > http://lists.scribus.net/mailman/listinfo/scribus
> > See also:
> > http://wiki.scribus.net
> > http://forums.scribus.net
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 833 bytes
> Desc: not available
> URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180503/ab4a1a11/attachment.bin>
> ___
> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.scribus.net/pipermail/scribus/attachments/20180506/571e22b7/attachment.bin>


More information about the scribus mailing list