get only the first line of title.
This commit is contained in:
parent
0afbf7cb39
commit
ae15105961
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ Client.register_trigger("PRIVMSG") do |msg|
|
|||
url = Digest::MD5.hexdigest(word)
|
||||
end
|
||||
|
||||
title = Nokogiri::HTML(open(word).read).title()
|
||||
title = Nokogiri::HTML(open(word).read).title().split(/\n/)[0]
|
||||
|
||||
Scrape::Link.create(
|
||||
:url => url,
|
||||
|
|
Loading…
Reference in a new issue