]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/wikipedia/wikipedia.factor
http.client: remove http-get* and its friends, change http-request* and with-http...
[factor.git] / extra / wikipedia / wikipedia.factor
index 13127ff1b7091237fd30126cc0b3d9e98f41381e..8bff89b45e61fed9f5be3b9d82449a4720328a9c 100644 (file)
@@ -48,7 +48,7 @@ SYMBOL: language
     [ month-name ] [ day>> ] bi "%s_%s" sprintf wikipedia-url ;
 
 : (historical-events) ( timestamp -- seq )
-    historical-url http-get* string>xml "ul" deep-tags-named ;
+    historical-url http-get nip string>xml "ul" deep-tags-named ;
 
 : items>sequence ( tag -- seq )
     children-tags [ deep-children>string ] map ;
@@ -74,7 +74,7 @@ PRIVATE>
     (historical-events) "Deaths" header. fourth items. ;
 
 : article. ( name -- )
-    wikipedia-url http-get* parse-html
+    wikipedia-url http-get nip parse-html
     "content" find-by-id-between
     [ html-text. ] with-string-writer string-lines
     [ [ blank? ] trim ] map harvest [