Toxic Chili 2 Posted August 8, 2012 Report Share Posted August 8, 2012 Ok, this is probably easy or has an obvious answer. But I have a text file which I can add to a list quite easily, but I want to be able to store the text files on in a subdirectory on my website. When I try to use $list from file using my web address all I get in the list is <html>, <body>, </body>, </html> How to I get ubot to actually read whats in the text file, not just take html tags? Thanks Quote Link to post Share on other sites
a2mateit 395 Posted August 8, 2012 Report Share Posted August 8, 2012 Have you tried using add list to list using page scrape? This should accomplish what you need. 1 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 8, 2012 Report Share Posted August 8, 2012 if you want to do that from a web url you need to do it like this.. add list to list- list from text--read file (url) for the content--delimiter $new line done.. 1 Quote Link to post Share on other sites
James J 3 Posted August 8, 2012 Report Share Posted August 8, 2012 if your file does not depend on HMTL try saving the file as .txt file with no HTML coding then upload it toyour server. then use that url as the location of the file. James 1 Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 9, 2012 Report Share Posted August 9, 2012 even with html in it if you have it on a server as .csv, .txt read file will take the entire content shown from that file. 1 Quote Link to post Share on other sites
Toxic Chili 2 Posted August 9, 2012 Author Report Share Posted August 9, 2012 if you want to do that from a web url you need to do it like this.. add list to list- list from text--read file (url) for the content--delimiter $new line done.. Thanks, that worked great :-) It was the read file thing I didn't know about add list to list(%advert_title, $list from text($read file("http:// <removed the url> /ubot/subject_titles.txt"), $new line), "Delete", "Global") Quote Link to post Share on other sites
Toxic Chili 2 Posted August 9, 2012 Author Report Share Posted August 9, 2012 if your file does not depend on HMTL try saving the file as .txt file with no HTML coding then upload it toyour server. then use that url as the location of the file. James The file was already a text file on my server, just needed the read file thing as LoWrIdErTJ - BotGuru mentioned :-) Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted August 9, 2012 Report Share Posted August 9, 2012 good deal glad it worked. 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.