#albaro-reports

1 messages · Page 1 of 1 (latest)

grave finch
#

Hi

worldly sparrow
#

I am back again!

grave finch
#

From last time I think we figured it out the URL, right? and you were able to pull the file

worldly sparrow
#

I was able to get the object

#

but for some reason the only way to get the data is looking at it in text form

#

I want to query the data but it only comes in text form and the csv file I am not being able to find in the object

#

I looked through all the things that come back with the object and could not figure out

grave finch
#

When you retrieve the CSV with a curl, did you actually have a file?

worldly sparrow
#

I do not

#

I only get what looks like a bunch of strings

grave finch
#

Can you share the latest attempt? code and response if it's Test data

worldly sparrow
#

It is not test data

#

It stats with b" then everything following is a string

next eagle
#

Hi @worldly sparrow I'm taking over this thread

worldly sparrow
#

Hi!

next eagle
worldly sparrow
#

is it fine if it is for a live report?

next eagle
#

Yes, only Stripe engineer can have access to see the request and response data. If you are not comfortable, you can also DM me the request ID.

worldly sparrow
#

I just dmed it to you!

#

actually I think the last one was the most relevant one

next eagle
#

Thanks, let me take a look

worldly sparrow
#

Thank you

#

If I can access the data as a csv or text file I can make things work. I am only being able to access it as a bunch of strings

next eagle
worldly sparrow
#

I am not following

#

I turned the curl call into a request call in Python

#

and was able to get the data back

#

but the object with the data only allows me to access it in as a bunch of strings. So not as a data block that I can query

next eagle
#

Can you share me the data the you receive from the response?

#

And you should Stripe Python library instead of making a curl call in your Python code.

worldly sparrow
#

How would you like for me to share the data?

#

I looked through the docs and could not fine a clear example so I ended up turning the curl call into a python call and using request

next eagle
#

You can DM to me

#

I see you have successfully the the file object response, what do you mean by you cannot access anything?

worldly sparrow
#

I just dmed you

next eagle
#

Show me the code

worldly sparrow
#

Just dmed you

next eagle
#

You should post the code in this chat so my colleague can easily follow up when I'm not around

worldly sparrow
#

I can share again if they need it, I just did not want to post here in case I accidentally have something that could be compromising

next eagle
#

Anyway, you are able to access the file download url through results.url . So you should write some Python code to download this file and read its content.