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_filegroup
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.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //go/leetcode-downloader:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationgo/leetcode-downloader/BUILD.bazel:11:17
name//go/leetcode-downloader:changelog.changelog_files
ruleClasspkg_files
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.srcs
locationgo/leetcode-downloader/BUILD.bazel:6:10
name//go/leetcode-downloader:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationgo/leetcode-downloader/BUILD.bazel:6:10
name//go/leetcode-downloader:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

2 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Update go, fix mod tidy missing proto modules, add dnscontrol preview (66aefb)
  • Add support for js and pythondata, update leetcode (97b97a)
  • Move leetcode to data (c3fe61)
  • Move all leetcode to cfg/leetcode-submissions (28e6d9)
  • Add sh leetcode (e4a776)
  • Add new leetcode submissions, change leetcode directory structure (196bcd)
  • Add changelog for all packages (a6ebf9)
  • Add bzl_target_doc (c5636e)
  • Update readmes (2c9d62)
  • Use subpackages() to build docs instead of writing queries to the tree (ba7b67)
  • Add md targets for all md files, add bzl/vars/readmes.bzl (a39482)
  • Move md/docs/ to md/docs/src, add rules_lint (85eaf6)
  • Rename golang to go (1cd7ba)

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_filegroup
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.doc.md
visibility
  • //visibility:private
changelog.changelog_data
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog.changelog_data
ruleClassal_git_run_binary
ruleOutput
  • //go/leetcode-downloader/model:changelog.changelog_data.yaml
visibility
  • //visibility:private
changelog.changelog_files
locationgo/leetcode-downloader/model/BUILD.bazel:11:17
name//go/leetcode-downloader/model:changelog.changelog_files
ruleClasspkg_files
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.srcs
locationgo/leetcode-downloader/model/BUILD.bazel:6:10
name//go/leetcode-downloader/model:readme.srcs
ruleClasspkg_files
visibility
  • //visibility:private
readme.with_children
locationgo/leetcode-downloader/model/BUILD.bazel:6:10
name//go/leetcode-downloader/model:readme.with_children
ruleClasspkg_filegroup
visibility
  • //visibility:public

3.2 - Changelog

  • Move changelog rules to bzl/rules/git, improve ansible rules (c94123)
  • Move changelog rules to bzl/rules/changelog (4d59d6)
  • Move readme rules to bzl/rules/readme (95ea8d)
  • Move bzl rules to bzl/rules/bzl (57930e)
  • Update go, fix mod tidy missing proto modules, add dnscontrol preview (66aefb)
  • Add support for js and pythondata, update leetcode (97b97a)
  • Move leetcode to data (c3fe61)
  • Move all leetcode to cfg/leetcode-submissions (28e6d9)
  • Add sh leetcode (e4a776)
  • Add new leetcode submissions, change leetcode directory structure (196bcd)
  • Add changelog for all packages (a6ebf9)
  • Add bzl_target_doc (c5636e)
  • Use subpackages() to build docs instead of writing queries to the tree (ba7b67)
  • Rename golang to go (1cd7ba)