Hi I'm trying to get information from a whole list of items from my AGOL. To make that happen I made a txt file with all the ID's of the items that I want to approach. And for each item I want to get the information of the item. See code below.
urls= open("dir to file with urls")
for x in urls:
print(x)
item = gis.content.get(x)
print(item)
Using the variable as shown above i get a 400 bad request error in return. However if I directly feed the ID in there like this: item = gis.content.get("458254021f2c47b2bb5ccaebd39323b2") I get the result I want.
Any idea on what could change if im trying to parse them from a variable instead of doing it by hand?