Python library to crawl user data from sharkey instances
Project description
Python library to crawl user notes from sharkey instances
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.
Installation
You can install the package via poetry (or another tool of your choosing):
poetry add sharkey-crawler
Usage
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.
Testing
# 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"
Development
Installing new dependencies
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
Changelog
Please see CHANGELOG for more information on what has changed recently.
License
The MIT License (MIT). Please see License File for more information.
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
sharkey_crawler-0.0.1.tar.gz
(16.5 kB
view details)