Jump to content
UBot Underground

Recommended Posts

Hi guy's,

 

I have kind of a weird question (possibly)... Does uBot write to html files?

 

Application: I have 100 .html files with text and [keyword1] and [keyword2] and [lsi keyword] in some parts of the text. Can uBot find those variable and update the html files to reflect my list of keywords?

 

If it can... does anyone now how ?

Link to post
Share on other sites

You need to use the $get files function and load the file names into a list.

 

Here is a quick example.

ui text box("Path to Html Files:", #path)
clear list(%get_files)
add list to list(%get_files, $get files(#path, "Yes"), "Delete", "Global")
loop($list total(%get_files)) {
    set(#current_filename, $next list item(%get_files), "Global")
    set(#current_file, $read file(#current_filename), "Global")
    comment("Start the replacing here and save the file back using the current_filename variable.")
}

Link to post
Share on other sites

Thank you guy's... That's a huge relief... I sometimes tend to put the cart in front of the horse with my uBot coding... (I'm still a tenderfoot when it comes to uBot... :) ) Thank you for your help Gogetta, that will save me a LOT of time figuring out what to do...

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...