Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Python wrapper for the /users/notes
endpoint of Sharkey (and probably also Misskey). You can use this to crawl the
public posts of a user.
You can install the package via poetry (or another tool of your choosing):
poetry add sharkey-crawler
from sharkey_crawler import SharkeyServer
SharkeyServer('example.org').user_notes(
user_id='xxxxxxxxxx',
allow_partial=True,
with_channel_notes=True,
with_renotes=False,
with_replies=False,
with_files=False,
limit=10,
since_id=None,
since_date=None,
until_id=None,
until_date=None
)
Checkout the docstring for more usage information.
# All
./venv/bin/pytest -m ""
# Unit
./venv/bin/pytest -m "unit"
# Integration
./venv/bin/pytest -m "integration"
# Unit and Integration
./venv/bin/pytest -m "integration or unit"
python3 -m venv venv
./venv/bin/python -m pip install --upgrade pip
./venv/bin/python -m pip install flit
./venv/bin/flit install --only-deps --deps develop
Either add the dependency to the optional dependencies, or create a new dependency within the [project]
namespace, e.g.:
[project]
...
dependencies = [
"requests==2.32.3"
]
Then, install dependencies with flit:
./venv/bin/flit install --only-deps --deps develop
# or: ./venv/bin/flit install --only-deps --deps all
You might be asking yourself why this project does not expose more endpoints. It could, and it likely will, but currently, the endpoints are not well documented and it takes a lot of effort to even add a single endpoint, which Sharkey has a lot of. Since Sharkey is not very old and the future is still unclear, I will not take the effort it takes to support more endpoints until I have a use case for it or I see great demand. If you want more endpoints, there are two recommended solutions for this:
There might also be solutions to automate parts of the development like creating Pydantic classes. If you are interested in this, feel free to contribute or open a discussion to organize this.
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.
FAQs
Python library to crawl user data from sharkey instances
We found that sharkey-crawler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.