fix pixiv source

This commit is contained in:
albert
2012-12-26 15:11:21 -05:00
parent 06c259188d
commit f44ba8fe9f
2 changed files with 4 additions and 2 deletions

View File

@@ -49,7 +49,9 @@ module Sources
end
def get_tags_from_page(page)
links = page.search("span#tags a").find_all do |node|
# puts page.root.to_xhtml
links = page.search("ul.tags a").find_all do |node|
node["href"] =~ /tags\.php/
end

View File

@@ -29,7 +29,7 @@ module Sources
assert(first_tag[0] =~ /./)
assert(first_tag[1] =~ /tags\.php\?tag=/)
end
should "convert a page into a json representation" do
assert_nothing_raised do
@site.to_json