You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@taverna.apache.org by Simone Bnà <s....@cineca.it> on 2016/04/28 17:44:03 UTC

atom feeds

Dear all,

I read the following sentences in the documentation:

The server also supports an overall Atom feed per user that allows you to find out when your workflows terminate without having to poll each one separately. This feed is at https://«SERVER:PORT»/taverna-server/feed (with the default web-application name). The feed is not available to anonymous users, and will only accept updates from the internal notification mechanism.

My question is:

Which tool can I use to parse the ATOM feeds? 

I tried the feedparser python library without success. 

#!/usr/bin/python
import feedparser
d = feedparser.parse('https://user:pssw@host:port/taverna-server/feed')
print d

Any suggestions are welcome.

Best regards,

Simone.

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it

Re: atom feeds

Posted by alaninmcr <al...@googlemail.com>.
On 28/04/2016 16:44, Simone Bnà wrote:
> Dear all,
>
> I read the following sentences in the documentation:
>
> The server also supports an overall Atom feed per user that allows you to find out when your workflows terminate without having to poll each one separately. This feed is at https://«SERVER:PORT»/taverna-server/feed (with the default web-application name). The feed is not available to anonymous users, and will only accept updates from the internal notification mechanism.
>
> My question is:
>
> Which tool can I use to parse the ATOM feeds?
>
> I tried the feedparser python library without success.
>
> #!/usr/bin/python
> import feedparser
> d = feedparser.parse('https://user:pssw@host:port/taverna-server/feed')
> print d

What happens if you just try to open that URL in a browser?

> Any suggestions are welcome.
>
> Best regards,
>
> Simone.

Alan


Re: atom feeds

Posted by Stian Soiland-Reyes <so...@cs.manchester.ac.uk>.
Simone, if you want to have a go at fixing it, could you fork of the
Apache repo instead so we can include it in the next release?

https://github.com/apache/incubator-taverna-server/blob/master/taverna-server-webapp/src/main/java/org/taverna/server/master/notification/atom/AtomFeed.java

On 1 December 2016 at 13:33, alaninmcr <al...@googlemail.com> wrote:
> On 23/11/2016 18:27, Simone Bnà wrote:
>>
>> Hi Donal,
>
>
> Hello again,
>
>> do you have any advise on how to proceed?
>
>
> Sorry for the delay. Donal is on holiday :)
>
> I am not sure what to advise. The source code is under
> https://github.com/taverna/taverna-server in
> /server-webapp/src/main/java/org/taverna/server/master/notification/atom/AtomFeed.java
>
>> Best,
>>
>> Simone.
>
>
> Alan



-- 
Stian Soiland-Reyes, eScience Lab
School of Computer Science
The University of Manchester
http://orcid.org/0000-0001-9842-9718

Re: atom feeds

Posted by alaninmcr <al...@googlemail.com>.
On 23/11/2016 18:27, Simone Bn� wrote:
> Hi Donal,

Hello again,

> do you have any advise on how to proceed?

Sorry for the delay. Donal is on holiday :)

I am not sure what to advise. The source code is under
https://github.com/taverna/taverna-server in
/server-webapp/src/main/java/org/taverna/server/master/notification/atom/AtomFeed.java

> Best,
>
> Simone.

Alan

Re: atom feeds

Posted by Simone Bnà <s....@cineca.it>.
Hi Donal,

do you have any advise on how to proceed?

Best,

Simone.



----- Messaggio originale -----
Da: "Alan Williams" <al...@googlemail.com>
A: users@taverna.incubator.apache.org
Inviato: Venerdì, 18 novembre 2016 21:55:18
Oggetto: Re: atom feeds

On 17-Nov-16 09:24, Simone Bnà wrote:
> Dear all,

Hello Simone

> I found out how to use feedparser in order to get the workflow UUIDs
> that finished in taverna server 2.5.4.
>
> Looking at the feedparser documentation, they said that there are two
> ways that feed publishers can save bandwidth, ETags and Last-Modified
> headers. I looked in the HTTP response headers but I did not find
> them.
>
> Is there a way to get only the feeds that have changed in order to
> save bandwidth?

I've checked the source code and I cannot see a way to limit the feed to 
returning only changed events.

Donal Fellows may be able to advise on what to do.

> Best regards,
>
> Simone.

Alan

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it

Re: atom feeds

Posted by Alan Williams <al...@googlemail.com>.
On 17-Nov-16 09:24, Simone Bn� wrote:
> Dear all,

Hello Simone

> I found out how to use feedparser in order to get the workflow UUIDs
> that finished in taverna server 2.5.4.
>
> Looking at the feedparser documentation, they said that there are two
> ways that feed publishers can save bandwidth, ETags and Last-Modified
> headers. I looked in the HTTP response headers but I did not find
> them.
>
> Is there a way to get only the feeds that have changed in order to
> save bandwidth?

I've checked the source code and I cannot see a way to limit the feed to 
returning only changed events.

Donal Fellows may be able to advise on what to do.

> Best regards,
>
> Simone.

Alan

atom feeds

Posted by Simone Bnà <s....@cineca.it>.
Dear all,

I found out how to use feedparser in order to get the workflow UUIDs that finished in taverna server 2.5.4.

Looking at the feedparser documentation, they said that there are two ways that feed publishers can save bandwidth,
ETags and Last-Modified headers. I looked in the HTTP response headers but I did not find them.

Is there a way to get only the feeds that have changed in order to save bandwidth?

Best regards,

Simone.



> Dear all,
>
> I read the following sentences in the documentation:
>
> The server also supports an overall Atom feed per user that allows you to find out when
your workflows terminate without having to poll each one separately. This feed is at https://«SERVER:PORT»/taverna-server/feed
(with the default web-application name). The feed is not available to anonymous users, and
will only accept updates from the internal notification mechanism.
>
> My question is:
>
> Which tool can I use to parse the ATOM feeds?
>
> I tried the feedparser python library without success.
>
> #!/usr/bin/python
> import feedparser
> d = feedparser.parse('https://user:pssw@host:port/taverna-server/feed')
> print d

What happens if you just try to open that URL in a browser?

> Any suggestions are welcome.
>
> Best regards,
>
> Simone.

Alan

----- Messaggio originale -----
Da: "Simone Bnà" <s....@cineca.it>
A: dev@taverna.incubator.apache.org
Inviato: Giovedì, 28 aprile 2016 17:44:03
Oggetto: atom feeds

Dear all,

I read the following sentences in the documentation:

The server also supports an overall Atom feed per user that allows you to find out when your workflows terminate without having to poll each one separately. This feed is at https://«SERVER:PORT»/taverna-server/feed (with the default web-application name). The feed is not available to anonymous users, and will only accept updates from the internal notification mechanism.

My question is:

Which tool can I use to parse the ATOM feeds? 

I tried the feedparser python library without success. 

#!/usr/bin/python
import feedparser
d = feedparser.parse('https://user:pssw@host:port/taverna-server/feed')
print d

Any suggestions are welcome.

Best regards,

Simone.

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it

Re: atom feeds

Posted by Simone Bnà <s....@cineca.it>.
Dear all,

I found out how to use feedparser in order to get the workflow UUIDs that finished.

Looking at the feedparser documentation, they said that there are two ways that feed publishers can save bandwidth,
ETags and Last-Modified headers. I looked in the HTTP response headers but I did not find them.

Is there a way to get only the feeds that have changed in order to save bandwidth?

Best regards,

Simone.



> Dear all,
>
> I read the following sentences in the documentation:
>
> The server also supports an overall Atom feed per user that allows you to find out when
your workflows terminate without having to poll each one separately. This feed is at https://«SERVER:PORT»/taverna-server/feed
(with the default web-application name). The feed is not available to anonymous users, and
will only accept updates from the internal notification mechanism.
>
> My question is:
>
> Which tool can I use to parse the ATOM feeds?
>
> I tried the feedparser python library without success.
>
> #!/usr/bin/python
> import feedparser
> d = feedparser.parse('https://user:pssw@host:port/taverna-server/feed')
> print d

What happens if you just try to open that URL in a browser?

> Any suggestions are welcome.
>
> Best regards,
>
> Simone.

Alan

----- Messaggio originale -----
Da: "Simone Bnà" <s....@cineca.it>
A: dev@taverna.incubator.apache.org
Inviato: Giovedì, 28 aprile 2016 17:44:03
Oggetto: atom feeds

Dear all,

I read the following sentences in the documentation:

The server also supports an overall Atom feed per user that allows you to find out when your workflows terminate without having to poll each one separately. This feed is at https://«SERVER:PORT»/taverna-server/feed (with the default web-application name). The feed is not available to anonymous users, and will only accept updates from the internal notification mechanism.

My question is:

Which tool can I use to parse the ATOM feeds? 

I tried the feedparser python library without success. 

#!/usr/bin/python
import feedparser
d = feedparser.parse('https://user:pssw@host:port/taverna-server/feed')
print d

Any suggestions are welcome.

Best regards,

Simone.

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it

-- 
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office:   +39-0516171938
email: s.bna@scsitaly.com/s.bn@cineca.it