Crates.io | vinted-rs |
lib.rs | vinted-rs |
version | 0.10.0 |
source | src |
created_at | 2023-07-08 17:58:18.08462 |
updated_at | 2024-11-03 15:11:08.785287 |
description | An async Vinted API wrapper |
homepage | |
repository | https://github.com/TuTarea/vinted-rs |
max_upload_size | |
id | 911591 |
size | 8,957,681 |
Via cargo
you can add the library to your project's Cargo.toml
[dependencies]
vinted-rs = { version = "0.10.0",
#features = ["advanced_filters", "redis"]
}
Feature | Description | Example |
---|---|---|
Advanced Filters | Uses the data pulled by the scrapping module, which is stored in the diesel migrations folder. | ✅ |
Redis | Allows recovered results to be cached using a Redis instance | ❌ |
This feature requires setting up a Postgres Database
Uses the data pulled by the scrapping module, which is stored in the diesel migrations folder.
Copy the .env.example
cp .env.example .env
Modify the variables to your liking
Advanced filtering features must require this setup before running.
⚠️ diesel-cli
installation may fail if you do not have libpq
library installed. To install libpq
, just install PostgreSQL package on your machine.
In Arch
based is only necessary to install this package.
sudo pacman -S postgresql-libs
In Debian
based distributions is only necessary to install this package.
sudo apt install libpq-dev
Install diesel-cli
in order to run the migrations in PostgreSQL database
cargo install diesel_cli --features=postgres --no-default-features
Available interactions (See Makefile)
Create a migration
mkdir -p migrations #
diesel migration generate my_migration
Program after that up.sql
and down.sql
scripts.
Run a Docker container with PostgreSQL
make db
Run migrations
make diesel
Stop DB
make stop
This step requires completing the DB setup
cargo test
This feature allows recovered results to be cached using a Redis instance.
A development instance can be created using:
make cache