|
@@ -108,16 +108,17 @@
|
|
|
(request (agets scrape :request))
|
|
(request (agets scrape :request))
|
|
|
(processor (or (agets scrape :processor) #'xml-request))
|
|
(processor (or (agets scrape :processor) #'xml-request))
|
|
|
(init (agets info :init))
|
|
(init (agets info :init))
|
|
|
- (validate (agets info :validate)))
|
|
|
|
|
|
|
+ (validate (agets info :validate))
|
|
|
|
|
+ (validate-init (or (agets info :validate-init) validate)))
|
|
|
(labels ((return-info ()
|
|
(labels ((return-info ()
|
|
|
(extract-items-info (agets scrape :items)
|
|
(extract-items-info (agets scrape :items)
|
|
|
(agets scrape :info))))
|
|
(agets scrape :info))))
|
|
|
(unless (have-cookies request)
|
|
(unless (have-cookies request)
|
|
|
- (do-form init context validate))
|
|
|
|
|
|
|
+ (do-form init context validate-init))
|
|
|
(with-request (request context processor)
|
|
(with-request (request context processor)
|
|
|
(if (do-validate validate)
|
|
(if (do-validate validate)
|
|
|
(return-info)
|
|
(return-info)
|
|
|
(progn
|
|
(progn
|
|
|
- (do-form init context validate)
|
|
|
|
|
|
|
+ (do-form init context validate-init)
|
|
|
(with-request (request context)
|
|
(with-request (request context)
|
|
|
(return-info))))))))
|
|
(return-info))))))))
|