Jump to content
UBot Underground

How can I delete half the data in an item?


Recommended Posts

Fellow UBotters...

 

Can anyone explain the best way to accomplish what I am trying to do in the below picture?  I am pretty sure I am going to have to play with regex, however maybe someone out there knows a more friendlier approach to removing half the content from an item?

 

thanks in advance

 

DD

 

 

 

 

http://derekdawson.com/wp-content/uploads/2013/06/ubot-pic1.jpg

post-9004-0-07122200-1370546358_thumb.jpg

Link to post
Share on other sites

Thank for the reply TJ...  Unfortunately I have no idea on how to loop the first few lines into my main list?  So far I have this

 

add list to list($list from text($scrape attribute($element offset(<class="abstract">, 0), "innertext"), ""), %roughlist"Delete""Global")
loop while("") {
}

Link to post
Share on other sites

 It's telling me that I "have exceeded the range of the list", I tried a 100 different variations of what you just said and I keep getting an error.  I cant even go into code view, because ubot is telling me that I haven't finished editing all the nodes- even though I have. Sorry about being a pest- hopefully that sheds light on something for you

 

thanks

DD

Link to post
Share on other sites

Try this. perhaps it could help

set(#abstract, $scrape attribute(<class="abstract">, "innertext"), "Global")
add list to list(%rought list, $list from text(#abstract, $new line), "Delete", "Global")
loop(5) {
    add item to list(%clear result, $next list item(%rought list), "Delete", "Global")
    comment("=========== the scrapeed line=====")
}
  • Like 1
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...