Re: multiple authors Re: [arxiv-api] Re: Looking for someone to build us an interface with arxiv

45 views
Skip to first unread message

Thorsten S

unread,
Jul 24, 2011, 5:35:47 PM7/24/11
to arxi...@googlegroups.com, Massimo Di Pierro
On Tue, Jun 28, 2011 at 11:09 PM, Massimo Di Pierro
<massimo....@gmail.com> wrote:
> Hello everybody,
>
> I have been playing around with the arxiv API. First of all good job.
>

[...]

> 3) Technically the structure of the entry is invalid because author is
> repeated and that is not allowed. Because of this python feedparser
> can only get the first author.  I can find a workaround to this by
> writing my own parser but perhaps you have a better solution.
>
> Massimo

the arXiv feed is correct. use feedparser version 5.0.1. feedparser v4
does not handle multiple authors, v5 does, see recent post.
with v5 you can do e.g.

print 'Authors: %s' % ', '.join(author.name for author in entry.authors)

Cheers
T.

Massimo Di Pierro

unread,
Aug 3, 2011, 8:12:03 PM8/3/11
to arXiv api
Thank you. I upgraded now. Will check asap.

Massimo

On Jul 24, 4:35 pm, Thorsten S <thorsten.schwan...@gmail.com> wrote:
> On Tue, Jun 28, 2011 at 11:09 PM, Massimo Di Pierro
>
Reply all
Reply to author
Forward
0 new messages