This is a small tool that automatically crawls the weekly competition, which can be easily run locally, without processing input and output, and at the same time can customise the daily question and custom classified questions for easy review.
<dependency>
<groupId>io.github.wuxin0011</groupId>
<artifactId>java-lc-run</artifactId>
<version>0.0.5-beta</version>
</dependency>First launch Please configure the cookies of your leetcode website ! if you
You can download the usage example here🚀 You can also use Maven to configure the configuration
if you want to custom some config
root_dir=[src,main,java]
# load cookie dir if is "." will load in work dir
request_config=.
# if get username failed , will use default username
username=wuxin0011
# create contest readme file
create_contest_readme=trueplace create config.properties file in your project resources dir
custom week contest LCContest.WEEK_CONTEST
public class CustomWeekContest {
public static void main(String[] args) {
LCContest.WEEK_CONTEST.createNo(CustomWeekContest.class);
}
}custom bi week contest LCContest.BI_WEEK_CONTEST
public class CustomBIWeekContest {
public static void main(String[] args) {
LCContest.BI_WEEK_CONTEST.createNo(CustomBIWeekContest.class);
}
}public class Next {
public static void main(String[] args) {
LCContest.autoCreateNext(Next.class);
}
}public class OtherContest {
public static void main(String[] args) {
Problem.customContest(OtherContest.class);
}
}public class LCDailyCustom {
public static void main(String[] args) {
LCEveryDay.everyDay.custom(LCDailyCustom.class);
}
}public class LCDailyCustom {
public static void main(String[] args) {
LCEveryDay.everyDay.custom(LCDailyCustom.class);
}
}public class SolutionTest {
public static void main(String[] args) {
new LCSolutionTemplate(SolutionTest.class, "Solution").run();
}
}Thanks JetBrains for the open source license provided