-Illuminati- 1 Posted October 14, 2016 Report Share Posted October 14, 2016 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. Quote Link to post Share on other sites
darryl561 177 Posted October 15, 2016 Report Share Posted October 15, 2016 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") Quote Link to post Share on other sites
-Illuminati- 1 Posted October 15, 2016 Author Report Share Posted October 15, 2016 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! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.