Tools for interacting with the replit site and database that do not depend on an ancient version of Flask.
Project description
Replit API
Database
Works exactly the same as the official implementation, but doesn't depend on Flask 1.1.2! See the official docs: https://replit-py.readthedocs.io/en/latest/api.html#module-replit.database
Web scraper
get_user_data(query, mode = "username")
mode
- What to query by. Can be "username"
or "url"
.
query
- The item to look for. Must be in format with the mode
.
Returns:
LiteralObject({ # LiteralObject just behaves like a class for this purpose. Keys = Attributes.
"favourite_langauges": [str(languages)],
"cycles": int(cycles),
"profile_picture": str(img_url)
})
get_repl_data(query, user = "", mode = "name")
mode
- What to query by. Can be "name"
or "url"
.
user
- Specifies the user to search for if the mode
is "name"
. Can be ommited if the mode
is "url"
.
query
- The item to look for. Must be in format with the mode
.
Returns:
LiteralObject({ # LiteralObject just behaves like a class for this purpose. Keys = Attributes.
"favourite_langauges": [str(languages)],
"cycles": int(cycles),
"profile_picture": str(img_url)
})
More to come!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for replitapi-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b454a7a1df3d4c6775d253d1893472f262f4c8d3589b7d118d0cc4e1401ad32c |
|
MD5 | cfb2bbfc12c642121f09cb908bc0731e |
|
BLAKE2b-256 | 7043445efaf4534301ff66166bbdc3b4c99bbed39e12fe66694c3f1f4a0f64fc |