mygtu
download old gtu papers with async downloader.
Installation Guide.
(recommended.)
pip install mygtu
pip3 install --no-cache git+https://github.com/mygtu/mygtu.git
Basic Example.
# default values are set to BE IC.
from mygtu import dl, gf
import asyncio
async def main():
urls = gf.gather_url()
await dl.download(urls)
asyncio.run(main())
# will download all the old papers of ic branch.
Another Example.
# you can pass your own values as json.
from mygtu import dl, logic
import asyncio
async def main():
gf = logic(
path="path/to_json.json",
branch="IC",
year="FIRST_YEAR",
course="BE"
)
db = gf.database()
urls = gf.gather_url(db)
await dl.download(urls)
asyncio.run(main())
Json Example.
{
"IC":{
"FIRST_YEAR":[
"3110006",
"3110003",
"3110005",
"3110007",
"3110014"
]
}
}
# pass json file path
from mygtu import logic
gf = logic(path="path/to_json.json")
Note.
=>i was writing this and same day gtu declared exam time-table so i am publishing half work, it may be unstable because its not tested.
=>this software is not developed by gtu.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mygtu-0.1.5.tar.gz
(6.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mygtu-0.1.5-py3-none-any.whl
(5.8 kB
view details)
File details
Details for the file mygtu-0.1.5.tar.gz.
File metadata
- Download URL: mygtu-0.1.5.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb394cc48eb8ce014f848bed1e3584b09ddcad3d3dd1cc61185a7b102a11e8f2
|
|
| MD5 |
23820fa22b1dd530973897cdf52c38b9
|
|
| BLAKE2b-256 |
ac06d29fa081469a1554649876b13bf16fbed9008d82db8150a11cbd12bda0e2
|
File details
Details for the file mygtu-0.1.5-py3-none-any.whl.
File metadata
- Download URL: mygtu-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9daeba07544389a944419341a5d4242e1ea9fee5878c4c62796d142710fcfee
|
|
| MD5 |
d05ec49c4c063f3730f24d18efd100d9
|
|
| BLAKE2b-256 |
a507fbdd737317c721a93f6d7192703657cdce633acbae33f068a641d97ddbc2
|