Jump to content
UBot Underground

Ubot Unable To Scrape Xml Generated Page Text


Recommended Posts


 

After checking the forum and  asking in the Skype Ubot group, several people said due to being XML that Ubot does not work with XML and said I needed a plugin to scrape the XML generated page text.

 


 

However, after viewing the two training videos I see nothing of scraping XML web pages.   Perhaps I've got it wrong and this plugin can get this page text.

 

Can ANY of you please confirm whether or not this plugin is able to scrape the page text of the above  link which is XML generated?

 

If not possible with that plugin, then which one will do it or is it completely not possible with Ubot? (which I'm now thinking is the case)

Edited by scriptbit
Link to post
Share on other sites

I already answered this but now I can't find the thread so here you go:

set(#get,$read file("http://ftr.fivefilters.org/makefulltextfeed.php?url=http:%2F%2Fwww.latimes.com%2Ftopic%2Fdisasters-accidents%2Ftransportation-disasters-accidents%2Ftraffic-accidents%2F03010001-topic.html&max=10"),"Global")
set(#title,$plugin function("XpathPlugin.dll", "$Generic Xpath Parser", #get, "//item/title", "innertext", ""),"Global")
set(#originalArticle,$plugin function("XpathPlugin.dll", "$Generic Xpath Parser", #get, "//item/description", "innertext", ""),"Global")
set(#article,$replace($strip tags($unescape html(#originalArticle)),"Let\'s block ads! (Why?)",$nothing),"Global")

1. $read file function acts like a get request

2-3. scrape title and original article using this plugin (it's free): http://www.bot-factory.com/free-ubotstudio-xpath-plugin/

4. Clean it up with various functions you need to be subscribed for updates I believe but if you are not maybe somebody can make a regex for it instead.

  • Like 1
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...