Posted By

xurde on 06/17/09


Tagged

link favicon rel Hpricot XPath


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


hpricot xpath string to grab favicon for a website


 / Published in: Ruby
 

  1. hpricot.at("/html/head/link[@rel='shorcut icon']").get_attribute('href')

Report this snippet  

You need to login to post a comment.