#!/usr/bin/env python3 """РГБИ (State Art Library of Russia, opac.liart.ru) search. Platform: OPAC-Global (DITM-Global), switched from «Библика» — probed 2026-09-21. Protocol (reverse-engineered from /opacg/js): 1. GET /opacg/ → frameset (login as guest auto) 2. POST /cgiopac/opacg/opac.exe arg0=GUEST&arg1=GUESTE&TypeAccess=PayAccess → guest session (numsean=9096453 hardcoded in JS, identif=GUEST) 3. POST /cgiopac/opacg/direct.exe (FLAT form fields, not querylist): _service = opacfindd.FindView (results) | opacfindd.FindSize (count) _version = 2.7.0 (FindView) | 1.1.0 (FindSize) _xsl = /opacg/html/search/xsl/search_results.xsl | .../history_find_size.xsl _errorXsl = /opacg/html/common/xsl/error.xsl _wait = 6M query/body = "