Vinted-rs: A Vinted API wrapper in Rust
Installation
Via cargo you can add the library to your project's Cargo.toml
[]
= { = "0.11.0",
#features = ["advanced_filters", "redis"]
}
Features
| 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 | ❌ |
Advanced filters
[!NOTE] This feature requires setting up a Postgres Database
Uses the data pulled by the scrapping module, which is stored in the diesel migrations folder.
Environment set-up
-
Copy the
.env.example -
Modify the variables to your liking
Database set-up
Advanced filtering features must require this setup before running.
[!IMPORTANT]
diesel-cliinstallation may fail if you do not havelibpqlibrary installed. To installlibpq, just install PostgreSQL package on your machine.
-
In
Archbased is only necessary to install this package. -
In
Debianbased distributions is only necessary to install this package.
-
Install
diesel-cliin order to run the migrations in PostgreSQL database
Available interactions (See Makefile)
-
Create a migration
Program after that
up.sqlanddown.sqlscripts. -
Run a Docker container with PostgreSQL
- See in Makefile
-
Run migrations
-
Stop DB
Testing set-up
[!NOTE] This step requires completing the DB setup
Redis
This feature allows recovered results to be cached using a Redis instance.
A development instance can be created using: