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',
...
}
Metadata
Release files for leetquery 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| leetquery-0.2.5.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| leetquery-0.2.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / leetquery-0.2.5.tar.gz
| Download URL | leetquery-0.2.5.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26ad03bae15a87d5c7159266671ab8492a14ccd894d04c25e69f4d4f26ff5ee7
|
|
BLAKE2b-256 checksum How to use checksums |
825540c69c5cf4481ee82170a9ea444566348fa63b2e39d3e16e6221b05c8145
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / leetquery-0.2.5-py3-none-any.whl
| Download URL | leetquery-0.2.5-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e19cd2ee27fb143f64435f2e5d6539d978765b06852bcbae5d04183eb59f6ec3
|
|
BLAKE2b-256 checksum How to use checksums |
28465f2a5f15ccb5d207fe363ec13172ef697d6f99ae4748d5f8a1fff3696170
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|