From: Corey Watts Date: 2010-10-19T07:54:38+09:00 Subject: Re: mechanize - extract href Thanks Mike. I've updated the code. Putting "./" in my code messed up what the code grabbed, so I eliminated all leading "/" and it worked. However, the website part still doesn't work. It looks like it is grabbing what is inside of the a tags, instead of grabbing the href address. A typical listing output looks like: McDonald's 1213 State St # B, Santa Barbara CA 93101 (805) 962-6976 » ? Website ["Restaurants", "Fast Food Restaurants", "American Restaurants"] The three lines: , ?, and Website are all grabbed from the website = website.search(...) line, but it's grabbing the wrong thing! Do you have any more suggestions? Attachments: http://www.ruby-forum.com/attachment/5222/mech.rb -- Posted via http://www.ruby-forum.com/.