# wallapopy
A Wallapop client for Python.
_Wallapop_ is a marketplace for second hand articles with a high user penetration in Spain. It follows the _two-sided_ reputation schema, where both seller and buyer receive a rating as well as an optional comment. User profiles consist of profile data, sold products with their associated feedbacks and products on sale.
This library was created to enable research projects related to reputation in the Sharing Economy (results not published yet).
## Data
Endpoints implemented:
* User:
* Profile (including user metadata).
* Published and sold items.
* Sent and received reviews.
* Search: by location and with optional parameters as query term or sorting strategy.
## Usage
Given that this library was intended to be used together with Scrapy, not only a client is included but also a _request builder_ to easily create _Scrapy Requests_ (or whatever it is needed).
### Request Builder
It returns a url that can be queried to access the data together with the method to do it.
```python
from request_builder import WallapopRequestBuilder
request_builder = WallapopRequestBuilder()
request_builder.user(40000000)
```
```
> {'method': 'GET', 'url': 'http://pro2.wallapop.com/shnm-portlet/api/v1/user.json/40000000?'}
```
### Client
Leveraging the _request builder_, a client that directly downloads the data.
```python
from client import WallapopClient
client = WallapopClient()
client.user(40000000)
```
```
> {u'gender': u'M', u'image': {u'averageHexColor': u'565b51', u'pictureId': 148033140, u'originalHeight': 416, u'mediumURL': u'http://cdn.wallapop.com/shnm-portlet/images?pictu...
```
A Wallapop client for Python.
_Wallapop_ is a marketplace for second hand articles with a high user penetration in Spain. It follows the _two-sided_ reputation schema, where both seller and buyer receive a rating as well as an optional comment. User profiles consist of profile data, sold products with their associated feedbacks and products on sale.
This library was created to enable research projects related to reputation in the Sharing Economy (results not published yet).
## Data
Endpoints implemented:
* User:
* Profile (including user metadata).
* Published and sold items.
* Sent and received reviews.
* Search: by location and with optional parameters as query term or sorting strategy.
## Usage
Given that this library was intended to be used together with Scrapy, not only a client is included but also a _request builder_ to easily create _Scrapy Requests_ (or whatever it is needed).
### Request Builder
It returns a url that can be queried to access the data together with the method to do it.
```python
from request_builder import WallapopRequestBuilder
request_builder = WallapopRequestBuilder()
request_builder.user(40000000)
```
```
> {'method': 'GET', 'url': 'http://pro2.wallapop.com/shnm-portlet/api/v1/user.json/40000000?'}
```
### Client
Leveraging the _request builder_, a client that directly downloads the data.
```python
from client import WallapopClient
client = WallapopClient()
client.user(40000000)
```
```
> {u'gender': u'M', u'image': {u'averageHexColor': u'565b51', u'pictureId': 148033140, u'originalHeight': 416, u'mediumURL': u'http://cdn.wallapop.com/shnm-portlet/images?pictu...
```
Metadata
Release files for wallapopy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wallapopy-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Release files / wallapopy-1.0.0-py2.py3-none-any.whl
| Download URL | wallapopy-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
cf031fe74142d77b5c2a2b1e9998f6fb45ffac09838d607c885ebee9fcba65b7
|
|
BLAKE2b-256 checksum How to use checksums |
48fa99e8d5143255375fc435b33f678ff9d769d77187e9bc3f86943c5cfacd79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wallapopy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.