A Wallapop client for Python.
Project description
This library provides a pure Python client for Wallapop. It works with Python versions from 2.6+ and Python 3.
API
Already implemented:
User:
Profile.
Sold items.
Unsold published items.
Reviews sent to others.
Reviews received by others.
Items search.
Other endpoints will be implemented as needed or requested.
Installing
You can install wallapopy using:
$ pip install wallapopy
Using
The motivation for this project was to enable research about reputation in the Sharing Ecoomy. That’s the reason it includes a request builder which can be used together with Scrapy. Nevertheless it also includes a client that directly returns the data.
Request Builder
It returns a url that can be queried to access the data together with the information needed to do it.
>>> 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.
>>> from client import WallapopClient
>>> client = WallapopClient()
>>> client.user(40000000)
{u'gender': u'M', u'image': {u'averageHexColor': u'565b51', u'pictureId': 148033140...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for wallapopy-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fc1ecdb38316c051db8c5b478854e679f6d1b873c011675ed418715326361da |
|
MD5 | e8c9f13bf19edc8b6769e2f3c4a65ec9 |
|
BLAKE2b-256 | c14c38d185444b714b5e33dfff09e417e177d80ea09c1d9b552b31e05e0c3a9f |