Add profile photo url to hcard parser
This commit is contained in:
parent
85b384010e
commit
5847e7767d
2 changed files with 3 additions and 2 deletions
|
|
@ -41,7 +41,7 @@
|
||||||
</dl>
|
</dl>
|
||||||
<dl class="entity_note">
|
<dl class="entity_note">
|
||||||
<dt>Note</dt>
|
<dt>Note</dt>
|
||||||
<dd class="note">Diaspora is awesome! Emacs is better than vi!</dd>
|
<dd class="note">Diaspora is awesome! vi is better than emacs!</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ module HCard
|
||||||
doc = Nokogiri::HTML(Net::HTTP.get URI.parse(url))
|
doc = Nokogiri::HTML(Net::HTTP.get URI.parse(url))
|
||||||
{:given_name => doc.css(".given_name").text,
|
{:given_name => doc.css(".given_name").text,
|
||||||
:family_name => doc.css(".family_name").text,
|
:family_name => doc.css(".family_name").text,
|
||||||
:url => doc.css("#pod_location").text}
|
:url => doc.css("#pod_location").text,
|
||||||
|
:photo => doc.css(".photo")}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue