Skip to content

Script For Windows Command Line #18

Description

@traarttra

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%"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions