Jump to content
UBot Underground

[Help] Scraping Data Via Http


Recommended Posts

I just recently purchased Pro edition and really would like to learn how to scrape via HTTP with Aymen's Post Plugin. I have searched all the threads and read through all his documentation, but I would really like to learn how to scrape and can't seem to figure out how to (Regex confuses me). Could anyone work with me on how to scrape via HTTP?

 

For example, I'd like to be able to go to http://tinychat.com/ and scrape everything between ">#thetextiwanttoscrape</a></strong> via HTTP.

The text after the # is just the name of the tinychat rooms listed on the directory.

 

At least an example could help get in the right direction, as I want to move away from webbrowsers altogether. 

 

 

Thank you for your time,

Sean

Link to post
Share on other sites

I think this is what you want, it uses the xpath parser. Regex isn't really necessary here but it can also be used:

set(#tinychat, $plugin function("HTTP post.dll", "$http get", "http://tinychat.com/", "", "", "", ""), "Global")
clear list(%rooms)
add list to list(%rooms, $plugin function("HTTP post.dll", "$xpath parser", #tinychat, "//div[@class=\'room\']/strong/a", "InnerText", "HTML"), "Delete", "Global")

Dan has a HTTP Post course http://www.ubotstudio.com/forum/index.php?/topic/16544-sell-http-plugin-tutorial-video-series/

 

That may be able to help you learn more. I have a regex course and regex builder as well on my website if you're interested in regex. 

 

The community here is pretty good as well so if you ever have questions we are here to help.

  • Like 2
Link to post
Share on other sites

Wow HelloImsomnia I just tested this out and it works! Thank you very much for showing me how to do a simple HTTP scrape. You and TJ have been great help to me in regards to the HTTP Plug-in. 

I think when I get paid next I will definitely pay for Dan's tutorial videos as well.

 

 Thanks again HelloImsonia, it means a lot to me.

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