Jump to content
UBot Underground

No Html In Element Editor.


Recommended Posts

So I am trying to scrape numbers off of http://majestic.com/

 

The citation flow and trust flow numbers.

 

Example page:

https://majestic.com/reports/site-explorer?q=0-ch.com&oq=0-ch.com&IndexDataSource=F

 

When I try to select the element in which to scrape, no HTML appears. Is there another form of approach to this?

 

My current command setup to scrape the content:

 

set(#trustflow,$scrape attribute(<class="trust_flow_innertext">,"value"),"Global")
 
 
I am also using the standard version of uBot.
Link to post
Share on other sites

Someone might have a better way but this should get done what you want:

set(#trust citation,$scrape attribute(<id="flow_metric_banner">,"innertext"),"Global")
clear list(%trust citation)
add list to list(%trust citation,$list from text(#trust citation,$new line),"Don\'t Delete","Global")
set(#trustflow,$list item(%trust citation,1),"Global")
set(#citation flow,$list item(%trust citation,3),"Global")
Link to post
Share on other sites

 

Someone might have a better way but this should get done what you want:

set(#trust citation,$scrape attribute(<id="flow_metric_banner">,"innertext"),"Global")
clear list(%trust citation)
add list to list(%trust citation,$list from text(#trust citation,$new line),"Don\'t Delete","Global")
set(#trustflow,$list item(%trust citation,1),"Global")
set(#citation flow,$list item(%trust citation,3),"Global")

 

Works perfectly for me.

 

I'm using this bot for personal use so the 1/10th of a second lost by this process doesn't bother me. 

 

Thanks again!

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