k1lv9h
Fellow UBotter-
Content Count
293 -
Joined
-
Last visited
-
Days Won
11
Everything posted by k1lv9h
-
Hi, Small change. Added code to check that the value of #AccountsFile is greater then $nothing. sample-create-accounts-001.ubot Kevin
-
newbie needs help with simple regex
k1lv9h replied to turovieal's topic in Regex (Regular Exp<b></b>ressions) 101
Hi, Regex code to select url with the word new in it: (www[.]autotrader[.]com\/p\/.*new[^"]+)Regex code to select url without the words repair and wanted: (?!.*repair|.*wanted)(www[.]autotrader[.]com\/p\/[^"]+)Kevin -
Scrape Data and Graph it on Load HTML?
k1lv9h replied to whoami's topic in Tutorials, Tips and Tricks
Hi, Yes. You can. Provided you format the table data in API format. Ex. [\'Year\', \'Sales\', \'Expenses\'], [\'2004\', 1000, 400], [\'2005\', 1170, 460], [\'2006\', 660, 1120], [\'2007\', 1030, 540]Kevin -
Hi, You have some variables set to local. Sample: sample-thread-007.ubot Kevin
-
Having Problem Scraping Number Phone, Help Needed
k1lv9h replied to XpownX's topic in General Discussion
Hi, Code: sample-scrape-code-001.ubot Kevin -
Hi, Sample code: sample-email-changeup-001.ubot Kevin
-
Hi, Yeah your right. It collects the blue colored title, green colored url and time if available. Then places the values in a three column list. It will process regular search results as well as results narrowed to the last 24 hours(&tbs=qdr:d). There is no possibility of the data to get out of order for each search result page. So you got me, Kevin
-
Hi, See if this works for you. sample-loop-time-001.ubot Kevin
-
Hi, Sample code: sample-google-search-format-001.ubot Kevin
-
[ERROR] you have exceeded the range of the list
k1lv9h replied to darknode's topic in General Discussion
Hi, Once I fixed the html code to be ubot friendly the code worked fine. Sample code: darknode-list-001.ubot changed <a href="{#url1}">{#url1}</a> to this <a href=\"{#url1}\">{#url1}</a>The above code is only 1. The other 9 would also need to be changed. I added a tab to create the html code using a loop. Kevin -
Hi, Yes I see it is solved. Here is ubot code to do column color changes using CSS. Skip color change for column headings. Uses "Navigate" instead of "load html" to load the created php file. This change allows style sheet to load. sample-table cell colors-004.ubot Style sheet code: tr { background-color:#F7F7F7; } body { background-color:#8b9dc3; } td:first-child { text-align: center; font-weight: bold; padding-left: 5px; padding-right: 5px; } td:nth-child(odd) { background-color:#FFFFFF; } td.lightgreen { background-color:lightgree
-
Hi, Code: set(#a, 21000, "Global") set(#b, 29000, "Global") if($both($both($comparison(#a, "<=", 30000), $comparison(#a, ">", 20000)), $both($comparison(#b, "<=", 20000), $comparison(#b, ">", 15000)))) { then { alert("do this") } else { } }Kevin
-
Yes
-
Hi, Without looking at your code it would be hard to say why the data is not being saved. Kevin
-
Hi, You could use $replace to remove mailto: from email value as it is saved to the table. For Name value "attribute to scrape" should be "outertext" not "name". Kevin
-
Hi, Not sure if you put what you tried in a loop. Sample: set(#row_num, 0, "Global") loop($table total rows(&ttab)) { set table cell(&my table, #row_num, 2, $replace($table cell(&my table, #row_num, 2), "E", $nothing)) increment(#row_num) }Kevin
-
Hi, This shell command sample code should play sound: shell("cmd.exe /C start \"Play Alarm\" /min \"%ProgramFiles(x86)%\\Windows Media Player\\wmplayer.exe\" %WINDIR%\\media\\Alarm01.wav /play /close")The Windows Media Player will not close when done unless you happen to be running an old version of player. Kevin
-
Hi, This sample code should work with on character string without @: set(#emailstart, "johnpicock", "Global") set(#emailstartlength, $text length(#emailstart), "Global") set(#emailstartrandumloc, $rand(1, #emailstartlength), "Global") set(#emailstartdupchar, $substring(#emailstart, $subtract(#emailstartrandumloc, 1), 1), "Global") set(#emailupdate, "{$substring(#emailstart, 0, #emailstartrandumloc)}{#emailstartdupchar}{$substring(#emailstart, #emailstartrandumloc, $subtract(#emailstartlength, #emailstartrandumloc))}", "Global")sample-email-dup-char-003.ubot Kevin
-
Hi, This sample code should do it: set(#emailstart, "johnpicock@gmail.com", "Global") set(#emailstartlength, $text length(#emailstart), "Global") set(#emailstartatloc, $find index(#emailstart, "@"), "Global") set(#emailstartrandumloc, $rand(1, #emailstartatloc), "Global") set(#emailstartdupchar, $substring(#emailstart, $subtract(#emailstartrandumloc, 1), 1), "Global") set(#emailupdate, "{$substring(#emailstart, 0, #emailstartrandumloc)}{#emailstartdupchar}{$substring(#emailstart, #emailstartrandumloc, $subtract(#emailstartlength, #emailstartrandumloc))}", "Global")sample-email-dup-char-002.
-
Hi, Here is loop while with stop sample code: sample-loop-while-001.ubot Kevin
-
Can't Wait For Ubot 5 Regex Builder - help
k1lv9h replied to SmileyBot's topic in Regex (Regular Exp<b></b>ressions) 101
Hi, Sample code: set(#pagedata, "<td class=\"fld\"><div id=\"178412972335796dv\"><a href=\"https://www.faceb00k.com/fashi0nandv0gue\" target=\"_blank\" );\"=\"\">View</a><a class=\"cursor\" onclick=\"skiplink(170100,\'178412972335796\',\'page\');\"> onclick=\"startlink(\'178412972335796\',\'page\',\'170100\',169);imageWin(\'https://www.faceb00k.com/fashi0nandv0gue\',\'Faceb00k\',\'170100\',\'178412972335796\',\'qlZpXoloamJedY0\',\'1015\',\'500\',\'page\'9)\">", "Global") set(#linkdata, $replace regular expression($replace regular expression($replace(#pageda -
Hi, During my testing with a compiled bot sometimes it would work and sometimes it would not work. I was thinking a timing thing. I adjusted your code. wait for element(<class="jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal">, "", "Appear") wait(1) set(#imageloopcount, $scrape attribute(<id="carouselText">, "innertext"), "Global") set(#imageloopcount, $replace(#imageloopcount, " images available", ""), "Global") With the above code adjustment I am getting consistent successful results. Kevin
-
Hi, I use this site for what commands are available and syntax: http://ss64.com/nt/ I also will use Windows command with /? to provide syntax I then use search(google/bing) to find code samples. I put the check in just in case the file goes missing while getting file size. Keeps ubot from getting script error on set #filesize to list item 3 when there are 2 or less items in list. Kevin
-
Hi, Sample code: set(#file, "c:\\downloads\\dirlist.txt", "Global") set(#filename, $replace regular expression(#file, ".*\\\\", $nothing), "Global") shell("cmd.exe /C dir /-C {#file} | find \"{#filename}\"> c:\\downloads\\file-size.txt") clear list(%dirresult) add list to list(%dirresult, $list from text($read file("c:\\downloads\\file-size.txt"), " "), "Delete", "Global") set(#filesize, 0, "Global") if($comparison($list total(%dirresult), ">", 2)) { then { set(#filesize, $list item(%dirresult, 3), "Global") } else { } } sample-dir-file-size-001.ubot Kevin
-
Hi, Sample code: sample-goomaps-scrape-002.ubot Kevin