This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Leetcode downloader

CLI app to download leetcode submissions

:warning: Download doesn’t work anymore because of Cloudflare

Usage

Generate submission from a submission file

bazel run go/leetcode-downloader -- \
    --submissions-file "${PWD}/out/submissions.json" \
    --root-dir "${PWD}" \
    generate

Help

Usage of flags:
  -base_url string
    	 (default "https://leetcode.com")
  -cookie string

  -limit uint
    	 (default 20)
  -offset uint

  -root-dir string
    	 (default "${PWD}")
  -submissions-file string

1 - Bazel targets

NameInfo
changelog
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog
ruleClasspkg_tar_impl
ruleOutput
  • //go/leetcode-downloader:changelog.tar
visibility
  • //visibility:public
changelog-changelog
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog-changelog
ruleClassal_template_files
ruleOutput
  • //go/leetcode-downloader:changelog.md
visibility
  • //visibility:public
changelog-changelog-data
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog-changelog-data
ruleClassgenrule
ruleOutput
  • //go/leetcode-downloader:changelog-changelog-data.yaml
visibility
  • //visibility:private
changelog-children
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog-children
ruleClasspkg_tar_impl
ruleOutput
  • //go/leetcode-downloader:changelog-children.tar
visibility
  • //visibility:private
changelog-template
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog-template
ruleClass_write_file
ruleOutput
  • //go/leetcode-downloader:changelog-template.md
visibility
  • //visibility:private
leetcode-downloader
locationgo/leetcode-downloader/BUILD.bazel:34:10
name//go/leetcode-downloader:leetcode-downloader
ruleClassgo_binary
visibility
  • //visibility:public
leetcode-downloader_lib
locationgo/leetcode-downloader/BUILD.bazel:16:11
name//go/leetcode-downloader:leetcode-downloader_lib
ruleClassgo_library
visibility
  • //visibility:private
readme
locationgo/leetcode-downloader/BUILD.bazel:6:10
name//go/leetcode-downloader:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme-children
locationgo/leetcode-downloader/BUILD.bazel:6:10
name//go/leetcode-downloader:readme-children
ruleClasspkg_tar_impl
ruleOutput
  • //go/leetcode-downloader:readme-children.tar
visibility
  • //visibility:public

2 - Changelog

3 - Models for leetcode-downloader

3.1 - Bazel targets

NameInfo
changelog
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog
ruleClasspkg_tar_impl
ruleOutput
  • //go/leetcode-downloader/model:changelog.tar
visibility
  • //visibility:public
changelog-changelog
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog-changelog
ruleClassal_template_files
ruleOutput
  • //go/leetcode-downloader/model:changelog.md
visibility
  • //visibility:public
changelog-changelog-data
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog-changelog-data
ruleClassgenrule
ruleOutput
  • //go/leetcode-downloader/model:changelog-changelog-data.yaml
visibility
  • //visibility:private
changelog-children
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog-children
ruleClasspkg_tar_impl
ruleOutput
  • //go/leetcode-downloader/model:changelog-children.tar
visibility
  • //visibility:private
changelog-template
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog-template
ruleClass_write_file
ruleOutput
  • //go/leetcode-downloader/model:changelog-template.md
visibility
  • //visibility:private
model
locationgo/leetcode-downloader/model/BUILD.bazel:16:11
name//go/leetcode-downloader/model:model
ruleClassgo_library
visibility
  • //visibility:public
readme
locationgo/leetcode-downloader/model/BUILD.bazel:6:10
name//go/leetcode-downloader/model:readme
ruleClassfilegroup
visibility
  • //visibility:public
readme-children
locationgo/leetcode-downloader/model/BUILD.bazel:6:10
name//go/leetcode-downloader/model:readme-children
ruleClasspkg_tar_impl
ruleOutput
  • //go/leetcode-downloader/model:readme-children.tar
visibility
  • //visibility:public

3.2 - Changelog