Posted By

reboltutorial on 03/02/10


Tagged

seo


Versions (?)

SEO Parse


 / Published in: CSS
 

URL: http://reboltutorial.com/blog/rebol-for-seo-marketing-guys/

I have been working on an internal tool for our sales and marketing departments. They wanted the ability to provide the URL of a company and return various information. One of the elements they wanted was the number of pages index in Google.

  1. goog: http://www.google.com/search?hl=en&btnG=Google+Search&q=
  2. domain: "reboltutorial.com" ;modify this string for your search term/keyword
  3. replace/all domain " " "+"
  4. query: rejoin [goog domain]
  5.  
  6. parse-rule: [
  7. thru "Results"
  8. thru "of about "
  9. thru <b>
  10. copy num to </b>
  11. to end
  12. ]
  13.  
  14. html-content: read query
  15. parse/all html-content parse-rule
  16. print num

Report this snippet  

You need to login to post a comment.