Hi!
Can you add the following script to the readme file for Windows users who can't use bash or get errors when running it or have multiple versions of Java?
mkdir html
set YEAR=2024
set CONSULTANT="https://www.consultant.ru/law/ref/calendar/proizvodstvennye/%YEAR%/"
set SUPERJOB="https://www.superjob.ru/proizvodstvennyj_kalendar/%YEAR%/"
set CONSULTANT_JSON=json/consultant%YEAR%.json
set SUPERJOB_JSON=json/superjob%YEAR%.json
set CONSULTANT_HTML=html/consultant%YEAR%.html
set SUPERJOB_HTML=html/superjob%YEAR%.html
set CHROME="C:\Program Files\Google\Chrome\Application\chrome.exe"
set JAVA_HOME="C:\Program Files\Java\jdk1.8.0_191"
set PATH="%JAVA_HOME%\bin";%PATH%
%CHROME% --headless --disable-gpu --dump-dom %CONSULTANT% > %CONSULTANT_HTML%
gradle runConsultant --args="--input %CONSULTANT_HTML% --output %CONSULTANT_JSON%"
Hi!
Can you add the following script to the readme file for Windows users who can't use bash or get errors when running it or have multiple versions of Java?