zonfar 1 Posted May 21, 2011 Report Share Posted May 21, 2011 So my end goal is to rid of characters if the word is not above a certain length. Also to cut off the length of how many words there are if its above a certain length. For example if I was to scrape a 1500 word I want to chop off the last 500 words so its only 1000 words max. More importantly I would like to know how to delete words that have less than 3 characters for example. I've attached an example that scrapes the tags of this youtube video into a variable, for example theres the words "cob" and "cell" both three characters long. How would I scrape the tags and delete those any words such as those two that have 3 or less total characters?set_tags.ubot Quote Link to post Share on other sites
Seth Turin 223 Posted May 22, 2011 Report Share Posted May 22, 2011 Hmm for the word count thing, you could do something like$list total( $list from text( #my text, " ")) to give you the word count. The pro version has a $text length constant that gives you the letter count of each word. It can be a little tricky in standard. Quote Link to post Share on other sites
UBotBuddy 331 Posted May 22, 2011 Report Share Posted May 22, 2011 Here is a word counter. Just copy your text to the textbox and run it. This can be adapted into other variations.WordCounter.ubot Quote Link to post Share on other sites
illmill 87 Posted March 30, 2013 Report Share Posted March 30, 2013 This is something I'm in need of now, but I can't open that file because it was done in v3. Would it be possible for you to paste the code so I can integrate it into my own bot? 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.