Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get group photos response parsing issue #145

Open
ValeraT1982 opened this issue Mar 11, 2023 · 0 comments
Open

Get group photos response parsing issue #145

ValeraT1982 opened this issue Mar 11, 2023 · 0 comments

Comments

@ValeraT1982
Copy link

flickr.groups.pools.getPhotos(group_id=group_id, per_page=per_page, page=page) returns

response = {Element: 1} <Element 'rsp' at 0x000001852D870EA0>
 attrib = {dict: 1} {'stat': 'ok'}
  'stat' = {str} 'ok'
  __len__ = {int} 1
 tag = {str} 'rsp'
 tail = {NoneType} None
 text = {str} '\n'
t = {float} 1678525790.7846668

No data.

But in https://github.com/sybrenstuvel/flickrapi/blob/master/flickrapi/core.py#L417 data is
b'<?xml version="1.0" encoding="utf-8" ?>\n<rsp stat="ok">\n<photos page="1" pages="71733" perpage="2" total="143465">\n\t<photo id="52740113193" owner="195986258@N03" secret="134ec80449" server="65535" farm="66" title="Neha" ispublic="1" isfriend="0" isfamily="0" ownername="Sandro G. Photography" dateadded="1678519073" />\n\t<photo id="52739875184" owner="195986258@N03" secret="baace6f6ef" server="65535" farm="66" title="Anisha" ispublic="1" isfriend="0" isfamily="0" ownername="Sandro G. Photography" dateadded="1678518326" />\n</photos>\n</rsp>\n'

OS: Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant