https://github.com/toniprada/wallapopy
A Python client for Wallapop
https://github.com/toniprada/wallapopy
api client scraper wallapop
Last synced: 5 months ago
JSON representation
A Python client for Wallapop
- Host: GitHub
- URL: https://github.com/toniprada/wallapopy
- Owner: toniprada
- Created: 2016-08-25T17:43:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T22:10:35.000Z (about 6 years ago)
- Last Synced: 2025-09-19T03:50:57.048Z (9 months ago)
- Topics: api, client, scraper, wallapop
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 26
- Watchers: 1
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-spain - wallapopy - square&label=%E2%AD%90)](https://github.com/toniprada/wallapopy/stargazers) [](https://github.com/toniprada/wallapopy/commits/master) [](https://github.com/toniprada/wallapopy) [](https://github.com/toniprada/wallapopy/blob/master/LICENSE) [](https://es.wallapop.com/) - Cliente Python para la API de Wallapop. (Inmobiliaria y Mercados / Wallapop)
README
# wallapopy
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 Economy. Because I needed lots of data, it includes not only a _client_ but also a _request builder_ which can be used together with Scrapy [(example)](https://github.com/toniprada/wallapop-users-scraper).
### Client
```python
>>> from wallapopy import WallapopClient
>>> client = WallapopClient()
>>> client.user(40000000)
{u'gender': u'M', u'image': {u'averageHexColor': u'565b51', u'pictureId': 148033140...
```
### Request Builder
It returns how to query the data: at the moment the url and HTTP method as nothing more is needed for the implemented endpoints.
```python
>>> from wallapopy import WallapopRequestBuilder
>>> request_builder = WallapopRequestBuilder()
>>> request_builder.user(40000000)
{'method': 'GET', 'url': 'http://pro2.wallapop.com/shnm-portlet/api/v1/user.json/40000000?'}
```