Skip to content

xilu-wang/leetcode_progress_bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode_progress_bar

Basic use (Mac Only)

  1. Download binary file from here: lcp

  2. chmod +x ./lcp

  3. Try run ./lcp progress -t day

  4. Open Preference --> Security & Privacy --> General

  5. Allow lcp

chmod +x ./lcp

./lcp cookie -s '{PASTE YOUR COOKIE HERE}'

./lcp progress -t day
./lcp progress -t month
./lcp progress -t year

Troubleshooting

If you run lcp progress but the total number is not accurate, try these command to cleanup:

# remove the log files
./lcp reset -f data

# re-run
./lcp progress -t day

How to get your leetcode cookie?

  1. Open your browser
  2. Inspect --> Network
  3. Go to https://leetcode.com/submissions/
  4. Filter the requests by "api/sub"
  5. Copy as cURL and find the cookie

screenshot demo

Below is the instruction if you are using Firefox

I got issues when copy cookie directly from firefox

  1. Open postman
  2. Import -> Paste Raw text and import

postman_01

  1. After import, click code

postman_02

  1. Scroll down to the end and copy the last Cookie

postman_03

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages