Closed luchenqun closed 6 years ago
worth a try to simply replace "leetcode.com" with "leetcode-cn.com" in lib/config.js
I had replaced the urls in config.js and relogin. the problem description is also English.
After I submit the solution,the problem became accepted on https://leetcode-cn.com yet.
And some problems is not the latest version?Index of easy array problems is 766 now,but leetcode list -q e array
only show 697
I wrote some codes to modify the graphql request.So that It can support Chinese content.But I haven’t tested it on the https://leetcode.com yet.
This is my first time writing nodejs code. it might have some flaws in it , please let me know if you find one .
Good job! @EINDEX Sorry I don't have a full test against leetcode-cn.com thus not sure if everything (e.g. list/show/test/submit) work the same as leetcode.com. I was told that leetcode-cli could easily talk to leetcode-cn.com by replacing all the URLs configs in leetcode-cli. I'm assuming you did the same while not sure if you ever hit other issues with leetcode-cn.com?
@skygragon The other functions work properly. I just replace "leetcode.com" with "leetcode-cn.com" in lib/config.js .
@all a lightweight plugin "leetcode.cn" is available in https://github.com/skygragon/leetcode-cli-plugins/. Basically it does nothing magical except replacing the urls used in leetcode-cli.
I am Chinese leetcoder。this is the website: https://leetcode-cn.com Can you provide config to get Chinese problem description and Others. for example, when i run command"leetcode show 3 -g -l cpp" i get: [3] Longest Substring Without Repeating Characters
https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/description/
I wish to get [3] Longest Substring Without Repeating Characters https://leetcode-cn.com/problems/longest-substring-without-repeating-characters/description/