From 1fecc222c7e25c2ea0cfd5eb5bd465e2b3ebecc7 Mon Sep 17 00:00:00 2001 From: vonavi Date: Wed, 5 Feb 2014 02:34:47 +0200 Subject: [PATCH] Rakefile: the extraction of PGN is fixed in accordance with new 'lichess' layout. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 51c7c1d..617884d 100644 --- a/Rakefile +++ b/Rakefile @@ -140,7 +140,7 @@ namespace :pgn do require 'open-uri' doc = Nokogiri::HTML open ENV['url'] - link = doc.css('a.view_pgn_toggle').first + link = doc.css('.fen_pgn a').first pgn_url = 'http://lichess.org' + link['href'] str = URI.parse(pgn_url).read File.open('temp.pgn', 'w') { |f| f.write str }