Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This works perfectly
- but ...
- curl = %x(curl http://odin.1.ai)
- simian = curl.match(/<title>(.*)<\/title>/)[1]
- puts simian
- if a page has no title
- curl = %x(curl http://zales.1.ai)
- it dies..any way to make it work e.g. with "no title" if a page has no title ?
- Thanks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement