python-leetcode icon indicating copy to clipboard operation
python-leetcode copied to clipboard

python client for leetcode api

Results 5 python-leetcode issues
Sort by recently updated
recently updated
newest added

UnicodeEncodeError Thanks ❯ ./scrap https://leetcode.com/problems/convert-an-array-into-a-2d-array-with-conditions/description/\?envType\=daily-question\&envId\=2024-01-02 2024-01-02 08:53:10,842 Starting new HTTPS connection (1): leetcode.com:443 Traceback (most recent call last): File "/home/eric/leetcode_py/scraping/scraper.py", line 32, in scraper_result = ProblemScraper()(title_slug) File "/home/eric/leetcode_py/scraping/scraper_problem.py", line 18,...

https://github.com/fspv/python-leetcode/blob/main/leetcode/models/graphql_question_detail.py class GraphqlQuestionDetail doesn't have example_testcase_list property. I cannot get the exampleTestcaseList data ![图片](https://github.com/fspv/python-leetcode/assets/1767874/46ae5105-ebf5-4470-bff3-a0bcde28d634)

Here is the TwoSum problem data returned on localhost https://gist.github.com/prius/4afc9ac7c6d2806559fb6052dc25099a ``` "companyTagStats": "{\"1\": [{\"taggedByAdmin\": true, \"name\": \"Amazon\", \"slug\": \"amazon\", \"timesEncountered\": 107}, {\"taggedByAdmin\": true, \"name\": \"Adobe\", \"slug\": \"adobe\", \"timesEncountered\": 43}, {\"taggedByAdmin\":...

I have been trying to submit solutions but they keep getting submitted to the wrong problem/contest. Take an example using the snippet below. This code is supposed to be submitted...

### Leetcode UI https://leetcode.com/problems/contains-duplicate/description/ ![Image](https://github.com/user-attachments/assets/6710e13b-9000-4a97-9d41-d1f47d51b901) ### Python-Leetcode Query ``` graphql_request = leetcode.GraphqlQuery( query='''query questionData($titleSlug: String!) { question(titleSlug: $titleSlug) { title difficulty companyTagStats isPaidOnly } } ''', variables=leetcode.GraphqlQueryGetQuestionDetailVariables( title_slug=title_slug) ) ```...