vibra 1 Posted February 3, 2011 Report Share Posted February 3, 2011 I'm having a difficult time with the "add to list" command. Tutorials show how to save to file after scraping ONE page. But obviously i want to be able to scrape multiple pages and adding to list... and then save simultaneously without clearing the list each time. any idea? Quote Link to post Share on other sites
Enigma 78 Posted February 3, 2011 Report Share Posted February 3, 2011 Creating a loop/while. Quote Link to post Share on other sites
UBotBuddy 331 Posted February 3, 2011 Report Share Posted February 3, 2011 There is not a Append List node...yet. Quote Link to post Share on other sites
vibra 1 Posted February 3, 2011 Author Report Share Posted February 3, 2011 huh? so who's right? i'll do the while statement. Quote Link to post Share on other sites
UBotBuddy 331 Posted February 3, 2011 Report Share Posted February 3, 2011 No doubt a Loop/While will work. That's what we do now. My comment was we (psst. might) do not have a Append List node ...yet. lol But my fingers are crossed. Quote Link to post Share on other sites
vibra 1 Posted February 3, 2011 Author Report Share Posted February 3, 2011 i know how to use a loop, but not a while statement. can you give me an example. i'll attach the code. Quote Link to post Share on other sites
JohnB 255 Posted February 3, 2011 Report Share Posted February 3, 2011 The list does not get cleared or overwritten until you clear it. Take the save file outside of the loop and add your navigation (to successive pages inside the loop. It will keep adding to the list until the loop is done at which point it will save the entire list to a file. Quote Link to post Share on other sites
UBotBuddy 331 Posted February 3, 2011 Report Share Posted February 3, 2011 Johns right. It will not clear until you clear it OR if you reload your bot into the environment. Quote Link to post Share on other sites
vibra 1 Posted February 3, 2011 Author Report Share Posted February 3, 2011 giving that a run. that purely is an error in logic on my parent. thank you brothers. i had a wonderful night last night. what'd you guys end up doing? Quote Link to post Share on other sites
turbolapp 5 Posted June 20, 2011 Report Share Posted June 20, 2011 No doubt a Loop/While will work. That's what we do now. My comment was we (psst. might) do not have a Append List node ...yet. lol But my fingers are crossed. please please please let this be on the next version Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.