Releases: Quantum-Codes/ScraGet
Get comments and much more!
Full Changelog: v0.2.2...master
This includes versions 0.2.3 and 0.2.4
Changes:
get_user_extras
renamed touser_extras
for ease of use.- Docstrings were formatted to be actually readable.
studio_extras
was added which contains functions to get projects and comments! More coming soon...- Get projects was added to
user_extras
. - Some mistakes and inconsistencies were corrected.
- Union was added to promote flexibility in passing different datatypes in params.
- Updates to README and wiki.
- Some insignificant improvements which you won't feel lol!
It is highly recommended to update your package to latest one as the wiki doesn't show info for old versions.
You all are free to ask questions, make PRs, issues, suggestions, etc...
https://github.com/Quantum-Codes/ScraGet/discussions/categories/q-a -> ask stuff here
Username validity checker
Added new featue! Username validity checker! Enter a username into the function and it checks whether:
- Username is taken or not
- Username is valid or not
- That's it...
Docs: https://github.com/Quantum-Codes/ScraGet/wiki/User-API#for-user_extrascheck_userme
Full Changelog: v0.2.0...v0.2.2
v0.2.1
Full Changelog: v0.2.0...v0.2.1
Changes:
- Changes to get_user_extra function
- Added feature to get followers
Cloud change event/decorator! Cloud API added!!
Now you can request Cloud data from ScraGet! And..
A new feature in the form of python decorator is released!! You can run a function whenever a change in Cloud data is detected! (Inspired from scratchclient with a different implementation).
Here's some basic syntax for the decorator:
from ScraGet import ScraGet
cloud = ScraGet.cloud()
@cloud.scan(ID="612229554", delay=1, NewThread=False)
def function(event):
print(event.var, "----", event.value) #prints the change
cloud.stop = True #stops the scanning
You can either run this on another thread or run in main thread! Docs coming soon on the wiki page about this.
Added annotations
Annotations also called type hints are added! Suggested by @ninjamar!
Annotations will help you determine the input type of the function arguement!
Also, Install requirements were defined so if you don't have the packages that makes ScraGet work (only requests module lol), it will automatically be installed!
The printing of this repository's link is removed.
@Quantum-Codes
Added docstrings!
Docstrings are added (suggested by @Sid72020123)! And..
Now the whole response object is returned!
So you can yourself extract data from the json response and even get the statuscode with other info!
The self.status_code
isnt removed though.
Encoder added!
New feature! Encoder/decoder for passing and decoding cloud variable data! (Getting clouddata coming soon).
This now makes communicating with cloud projects easier!! Report any bugs
Studio API updated!
Recently scratchhad changed studio API which broke the package for studios. Now it's updated!
Response time!
- Response time added
- Docs completed
- Docs link added
- Some changes
Ready for use
This release makes ScraGet ready to use.