Giter VIP home page Giter VIP logo

wallapop-alert's Introduction

Wallapop alert

Script en Python para revisar nuevos artículos que te interesen.

¡Estado actual!

El código no lo mantengo aquí, revisa Wallaviso. Eres libre de realizar un Fork de este script.

Instalar

Necesitarás Python 3.6 o superior.

pip install -r requirements.txt

Ejemplo de uso

./wallapop_alert.py -k gameboy

Configuración

Ves a la página de http://es.wallapop.com/ y realiza una busqueda. A continuación pega la ruta en urlSearch.

Esta preparado para trabajar con Pushbullet. Si quieres usarlo deberás sustituir <You Token>.

wallapop-alert's People

Contributors

gabrifc avatar tanrax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wallapop-alert's Issues

TypeError: argument of type 'bool' is not iterable

Hi

I have this error executing the script,some idea? thanks a lot

root@ubuntuserver:/home/kapranos# python wallapop_alert.py
Traceback (most recent call last):
File "wallapop_alert.py", line 46, in
if item not in data_save:
TypeError: argument of type 'bool' is not iterable
root@ubuntuserver:/home/kapranos#

Wallapop search always returns default sorting

Hi!

When searching for new items in the wallapop site, (e.g. gameboy - http://es.wallapop.com/search?kws=gameboy&lat=41.398077&lng=2.170432#minPrice=&maxPrice=&dist=0_&order=creationDate-des&kws=gameboy&lat=41.398077&lng=2.170432), the html response from the server is always the search without filters and default distance sorting (http://es.wallapop.com/search?kws=gameboy&lat=&lng=).

After a few seconds, the product list gets updated with the custom sorting (e.g. new products first) and other filters via JS.

Therefore, this script will only notify new items if they are new in the default filters and sorting.

I used to workaround this using selenium with the phantomJS browser in a virtualdisplay and waiting aprox. 6 seconds for the page to load before reading the source and parse it with bs4.

Your approach with demiurge is much cleaner and cheaper in terms of resources, but can it be adapted to return the updated results?

No funciona

Buenas, intento meter la siguiente url y no me va:
http://es.wallapop.com/search?kws=new+3ds+xl&lat=41.398077&lng=2.170432#minPrice=70&maxPrice=150&dist=0_&order=creationDate-des&kws=new+3ds+xl&lat=41.398077&lng=2.170432

He cambiado la línea de urlSearch a:
urlSearch = 'http://es.wallapop.com/search?kws=new+3ds+xl&lat=41.398077&lng=2.170432#minPrice=70&maxPrice=150&dist=0_&order=creationDate-des&kws=new+3ds+xl&lat=41.398077&lng=2.170432'

Me reporta el siguiente error:

  File "./wallapop_alert.py", line 126
    wallAlert(urlSearch)
                       ^
TabError: inconsistent use of tabs and spaces in indentation

Me da error a la hora de ejecutar

Hola,
Estoy intentando ejecutarlo pero me da el siguiente error:

./wallapop_alert.py -k gameboy
Traceback (most recent call last):
File "./wallapop_alert.py", line 3, in
import demiurge, sys, getopt, os, pickle, tempfile
File "/usr/local/lib/python3.4/dist-packages/demiurge/init.py", line 7, in
from .demiurge import (
File "/usr/local/lib/python3.4/dist-packages/demiurge/demiurge.py", line 5, in
import pyquery
File "/usr/local/lib/python3.4/dist-packages/pyquery/init.py", line 7, in
from .pyquery import PyQuery # NOQA
File "/usr/local/lib/python3.4/dist-packages/pyquery/pyquery.py", line 10, in
from lxml import etree
ImportError: No module named 'lxml'

Me puedes ayudar? Gracias y saludos,

Problem installing demiurge

Hi!

First, your project looks amazing,very nice idea and implementation.

I have a few problems with this, first:

  • When trying to install demiurge both in Ubuntu Server 16.04 and Raspbian i have the same problem.

The directory '/home/kapranos/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/kapranos/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Requirement already satisfied (use --upgrade to upgrade): demiurge in /usr/local/lib/python2.7/dist-packages Requirement already satisfied (use --upgrade to upgrade): pyquery>=1.2.8 in /usr/local/lib/python2.7/dist-packages (from demiurge) Requirement already satisfied (use --upgrade to upgrade): cssselect>0.7.9 in /usr/local/lib/python2.7/dist-packages (from pyquery>=1.2.8->demiurge) Requirement already satisfied (use --upgrade to upgrade): lxml>=2.1 in /usr/local/lib/python2.7/dist-packages (from pyquery>=1.2.8->demiurge)

I make sudo pip install --upgrade but when i try to execute the script with "python3 wallapop_alert.py" i have this error:

Traceback (most recent call last):
File "wallapop_alert.py", line 3, in
import demiurge, os, pickle, tempfile
ImportError: No module named 'demiurge'

Can you help me please? Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.