Jump to content
UBot Underground

List writes lines to file fine, but is one big item in UBot.


Recommended Posts

I'm trying to parse a list of image URLs that I'm scraping from Google images. That part all works fine, I get the list, save it to a file, all looks good.

 

But then I create a $list from file and for some reason I can't figure out, it's always just one giant element, as opposed to the separate lines i see in my text file (or when I use an alert to display the contents of the list).

 

What am I doing wrong here? I even tried doing a $list from text and specifying $new line as the delimeter in case it would help, but no change.

 

So the initial contents are written to the file without any issue, then put into a list called %final_images. That list's $list total is always 1, but when I alert it directly, everything is on a separate line and looks fine.

 

Where have I messed this one up?

 

Thanks!

Link to post
Share on other sites

Yep... very confusingly named. Add a list to a list when I don't yet have a list?

 

Well... actually, as soon as you name it, it is initialized; so you have it, but it's empty...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...