Not sure what layer your question is at, nor do I really understand what
you mean by "navigate through a set of webpages".

So, for the parts of your question that I do understand, you can do
something like this

str = "page1 > page2 > page3"

require 'yaml'
url = YAML.load_file './your_config_file'

require 'open-uri'

str.split(/\s*>\s*/).each do |key|
  source = open url[key], &:read

  # do something with the source

end


On Wed, Feb 12, 2014 at 5:26 AM, Pradeep Pai. <[email protected]>wrote:

> Hi ,
>
> I am new to Ruby. I need to find a way to navigate through a set of
> webpages. I have a configuration file with keywords and corresponding HREFs
> as shown below :
>
>  "page1" : /hello/world/page1
> "page2" : /hello/world/page2
> "page3" : /hello/world/page3
>
> I want to pass a single string variable with the necessary navigation
> using the ">" symbol in the following format for navigation :  "*page1 >
> page2 > page3*"
>
> Is it possible to do so in Ruby ?
>
>  --
> --
> SD Ruby mailing list
> [email protected]
> http://groups.google.com/group/sdruby
> ---
> You received this message because you are subscribed to the Google Groups
> "SD Ruby" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
--- 
You received this message because you are subscribed to the Google Groups "SD 
Ruby" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to