Jump to content



Photo

How To Delete Certain Domain From List?


  • Please log in to reply
5 replies to this topic

#1 gavner25

gavner25

    Advanced Member

  • Members
  • PipPipPip
  • 48 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 01 October 2019 - 04:51 AM

Hi, see this link here

 

https://www.loom.com...386a9f41e988937

 

How can i delete the domains containing the word google from the list?

 

I searched for older posts regarding this but i didnt get the solution.



#2 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1532 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 October 2019 - 06:41 AM

I put your exact title plus "ubot" in google, it's better than forum search.

 

https://www.google.c...chrome&ie=UTF-8


UBot Expert Tutorials Store

 

ubot-docta-header-ubot-expert-store.png

 

Python and UBot expert tutorials and documentation


#3 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1532 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 October 2019 - 06:55 AM

clear list(%urls)
add list to list(%urls,$list from text("https://www.google.ocm/lsdjflsdjkflsjdlfsjdlf-df/sdfs-
https://www.facebook.ocm/lsdjflsdjkflsjdlfsjdlf-df/sdfs-
https://google.ocm/lsdjflsdjkflsjdlfsjdlf-df/sdfs-
https://twitter.ocm/lsdjflsdjkflsjdlfsjdlf-df/sdfs-",$new line),"Delete","Global")
clear list(%cleaned urls)
add list to list(%cleaned urls,$list from text($replace regular expression(%urls,".*google.*",$nothing),$new line),"Delete","Global")
alert(%cleaned urls)

one of the easier ways

 

if you have $replace regular expression available in your ubot edition.

 

Regards,

Nick


UBot Expert Tutorials Store

 

ubot-docta-header-ubot-expert-store.png

 

Python and UBot expert tutorials and documentation


#4 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1532 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 October 2019 - 07:41 AM

uploaded ubot file

Attached Files


UBot Expert Tutorials Store

 

ubot-docta-header-ubot-expert-store.png

 

Python and UBot expert tutorials and documentation


#5 gavner25

gavner25

    Advanced Member

  • Members
  • PipPipPip
  • 48 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 01 October 2019 - 11:48 AM

Many thanks for your help on this one. I'll try it out 



#6 Code Docta (Nick C.)

Code Docta (Nick C.)

    Member for Hire

  • Fellow UBotter
  • PipPipPip
  • 1532 posts
  • LocationIn a Python or UBot IDE or ubotdocta.com
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 01 October 2019 - 04:37 PM

You are welcome!


UBot Expert Tutorials Store

 

ubot-docta-header-ubot-expert-store.png

 

Python and UBot expert tutorials and documentation





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users