seana88 2 Posted June 10, 2015 Report Share Posted June 10, 2015 Hey everyone, I'm familiar with page scraping from a website, but how do I go about scraping some data from a .txt file on my desktop? Thanks again Quote Link to post Share on other sites
HelloInsomnia 1103 Posted June 10, 2015 Report Share Posted June 10, 2015 Try $read file It's a function that can be found searching the toolbox or under Data Functions Quote Link to post Share on other sites
seana88 2 Posted June 11, 2015 Author Report Share Posted June 11, 2015 Hey HelloInsomnia, I looked into that and tried some tinkering but I can't seem to get it to work. I'm just trying to scrape a .txt file using page scrape. Could you provide an example? Thanks again for your help,Sean Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 11, 2015 Report Share Posted June 11, 2015 Hi, Page scrape is for web pages only. If you want to parse a text file use Regex. If you want to bring you file into a list then use "add list to list" name that list then use "list from file" in second field and give it your file path. Or you can use "list from text" instead and then use "read file". These are basic tasks and there are videos explaining these and a wiki as well. vidshttp://www.ubotstudio.com/tutorials wiki http://wiki.ubotstudio.com/wiki/Main_Page Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted June 11, 2015 Report Share Posted June 11, 2015 The examples clear list(%liat A)clear list(%liat B)add list to list(%liat A, $list from file("SELECT FILE"), "Delete", "Global")add list to list(%liat B, $list from text($read file("FILE PATH CHOOSE YOUR TEXT FRILE"), $new line), "Delete", "Global") CD 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.