GithubHelp home page GithubHelp logo

danielhuici / wallamonitor Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 3.0 54 KB

Periodically checks Wallapop for new articles based on specified parameters and notify through Telegram channel.

Python 100.00%

wallamonitor's Introduction

Wallamonitor

Periodically checks Wallapop for new articles based on specified parameters and notify them through Telegram channel.

Setup ๐Ÿ”ง

pip3 install pyyaml python-telegram-bot 

You will also need to set your Telegram config at config.yaml:

TELEGRAM_CHANNEL_ID=@Your_Telegram_Channel_ID
TELEGRAM_TOKEN=Your Telegram Token

Usage

  1. Create a args.json file and fill it with following parameters (JSON):
[
  {
    "search_query": "search query", # Find products containing...
    "latitude": "40.4165", # Latitude origin for distance search
    "longitude": "-3.70256", # Longitude origin for distance search
    "max_distance":"0", # Distance search range (in meters). Use 0 for unlimited distance
    "condition": "all", # Can be: all, new, as_good_as_new, good, fair, has_given_it_all
    "min_price": "20", # Minimum price
    "max_price": "80", # Maximum price
    "title_exclude" : [], # Exclude an item if title contains one of this words
    "description_exclude": [], # Exclude an item if description contains one of this words
    "title_must_include" : [], # Exclude an item if title does not contains one of this words
    "description_must_include" : [] # Exclude an item if description does not contains one of this words
  },

  
  ...
]

Check the file args.json of this repo for an example.

  1. Run:
$ python3 main.py

wallamonitor's People

Contributors

danielhuici avatar mr-brune avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wallamonitor's Issues

work fine??

Hello, I'm trying to start the bot, but I think it doesn't work well and there are things that it doesn't send, for example I'm putting a search word, I create an ad with that word and it doesn't send it, and I don't know what it is the reason.
With the words in args.json it works from time to time but I think it leaves a lot of ads in the way. Could you help me?

No me encuentra nuevos productos

Buenas, lo primero darte las gracias por la herramienta.

Lo segundo, no soy muy experto en linux, pero creo que lo consegui poner en marcha porque vi en el log esto

2024-02-22 14:20:51,240 - INFO - Wallapop monitor worker started. Checking for new items containing 'dji mini 2' with given parameters periodically
2024-02-22 14:20:51,702 - INFO - Wallapop monitor worker started. Checking for new items containing 'dji mini 3' with given parameters periodically
2024-02-22 14:20:56,316 - INFO - 'dji mini 2' node-> last: 5.068476438522339 max: 5.068476438522339 avg: 5.068476438522339
2024-02-22 14:20:56,775 - INFO - 'dji mini 3' node-> last: 5.071389675140381 max: 5.071389675140381 avg: 5.071389675140381

Lo he dejado toda el rato hasta que esta noche ha dado un error, imagino que de limite de ataque al api:

2024-02-23 02:08:43,800 - ERROR - Request Exception: 504 Server Error: Gateway Timeout for url: http://api.wallapop.com/api/v3/general/search?keywords=dji%20mini%202&order_by=newest&latitude=42.3495246&longitude=-3.6924512&distance=0&min_sale_price=280&max_sale_price=320&filters_source=quick_filters&language=es_ES
2024-02-23 02:08:48,873 - ERROR - Request Exception: 504 Server Error: Gateway Timeout for url: http://api.wallapop.com/api/v3/general/search?keywords=dji%20mini%203&order_by=newest&latitude=42.3495246&longitude=-3.6924512&distance=0&min_sale_price=400&max_sale_price=450&filters_source=quick_filters&language=es_ES

pero no me avisa de ningun producto nuevo, y en la aplicacion si que me salen, se te puede ocurrir que comprobar?

Lo dicho, muchas gracias.

Un saludo.

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.