开发者

XML "not well-formed (invalid token)" error from FlickrApi

开发者 https://www.devze.com 2023-01-21 12:39 出处:网络
First of all : I\'m using the well known (and tested I suppose) flickrapi. I was testing synchronization of flickr photos with my project and everything worked fine till I reached some specific files.

First of all : I'm using the well known (and tested I suppose) flickrapi. I was testing synchronization of flickr photos with my project and everything worked fine till I reached some specific files. Then python's xml parser failed to parse xml to string (and error from topic). Debug gave me line and column in the xml, so I've exported it to a file :

    <开发者_Python百科;exif tagspace="IFD0" tagspaceid="0" tag="Copyright" label="Copyright">
        <raw>©Etienne-Follet.com</raw>
        <clean>©Etienne-Follet.com</clean>
    </exif>

Error is in line <clean>©Etienne-Follet in column <cleanerror>©... . Can anyone see anything strange in this line ? What more, every single photo from this set/author crashes. Maybe it is somehow connected with the special characters ? Here's the link to sample set that fails to parse :

http://www.flickr.com/photos/rte-france/sets/72157623592737564/


Unsolvable: http://bitbucket.org/sybren/flickrapi/issue/11/encoding-issues . Looks like this is a flickr's side issue and they're not going to solve it quickly.


I suppose that you have to encode everthing in UTF-8, so make sure it is so.

0

精彩评论

暂无评论...
验证码 换一张
取 消