Jump to content
UBot Underground

[V 4.0.61] Scraping Attributes


Recommended Posts

Ok i m using simple proxy scraping and sometimes it scrapes proxies and soemtimes it doesnt. Now i dont understand why.

 

Here is a code:

clear cookies
change proxy("None")
set user agent("Googlebot")
navigate("http://www.samair.ru/proxy/time-01.htm", "Wait")
wait(10)
clear list(%proxy)
wait(1)
add list to list(%proxy, $scrape attribute(<outerhtml=w"<td>*<script type=\"text/javascript\">document.write(\":\"+o+j)</script>*</td>">, "innertext"), "Delete", "Global")
wait(1)
save to file("D:\\Program Files\\UBot\\UBot\\Ubot\\proxy.txt", %proxy)
set list position(%proxy, 0)
wait(1)

Link to post
Share on other sites

Ok i m using simple proxy scraping and sometimes it scrapes proxies and soemtimes it doesnt. Now i dont understand why.

 

Here is a code:

clear cookies
change proxy("None")
set user agent("Googlebot")
navigate("http://www.samair.ru/proxy/time-01.htm", "Wait")
wait(10)
clear list(%proxy)
wait(1)
add list to list(%proxy, $scrape attribute(<outerhtml=w"<td>*<script type=\"text/javascript\">document.write(\":\"+o+j)</script>*</td>">, "innertext"), "Delete", "Global")
wait(1)
save to file("D:\\Program Files\\UBot\\UBot\\Ubot\\proxy.txt", %proxy)
set list position(%proxy, 0)
wait(1)

 

You'll need to find a better way of scraping the proxies. When I load the page I get:

<td>198.36.222.8<script type="text/javascript">document.write(":"+m+s+y+x)</script>:3128</td>

 

This doesn't match your document.write part, which is why nothing is found.

 

You could try replacing what's in document.write with *.

 

Please try to keep problems like this out of the bug reports topic, as this topic is for bugs with UBot Studio.

 

Thanks :)

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