Query and analyze data from leetcode
Project description
LeetQuery
A library for retriving Human Resource information from Leetcode.
Install
pip install leetquery
Usage
Retrieving User Submissions
Just enter user name and limit of query!
from leetquery.user import get_submissions
submissions = get_submissions(username="syhaung", limit=12)
return value:
["question1", "question2", ...]
For Problems
Retrieving Problem Discription
Just enter probelm nameSlug and get the problem discription in HTML~~
from leetquery.problem import get_discription
submissions = get_discription(problemname="two-sum")
return value:
<p>Given an array of integers <code>nums</code> and an integer <code>target</code>, return <em>indices of the two numbers such that they add up to <code>target</code></em>.</p>
...
Retrieving Problem Statistics
Get the statistics for the problem in a JSON format, help you quantize difficulties
from leetquery.problem import get_stats
stat = get_stats("two-sum")
assert isinstance(stat, dict) and \
list(stat.keys()) == ['totalAccepted', 'totalSubmission', 'totalAcceptedRaw', 'totalSubmissionRaw', 'acRate']
return value:
{
'totalAccepted': '10.4M',
'totalSubmission': '20.6M',
...
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leetquery-0.2.5.tar.gz
(5.2 kB
view details)
Built Distribution
File details
Details for the file leetquery-0.2.5.tar.gz
.
File metadata
- Download URL: leetquery-0.2.5.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ad03bae15a87d5c7159266671ab8492a14ccd894d04c25e69f4d4f26ff5ee7 |
|
MD5 | 3f5f7c935d7bdac475a1745cf901b8f1 |
|
BLAKE2b-256 | 825540c69c5cf4481ee82170a9ea444566348fa63b2e39d3e16e6221b05c8145 |
File details
Details for the file leetquery-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: leetquery-0.2.5-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e19cd2ee27fb143f64435f2e5d6539d978765b06852bcbae5d04183eb59f6ec3 |
|
MD5 | 1e9a5a7de91467b7a01b0432774a0ae4 |
|
BLAKE2b-256 | 28465f2a5f15ccb5d207fe363ec13172ef697d6f99ae4748d5f8a1fff3696170 |