https://github.com/serginator/wallasearch
Python3 script to run searches in wallapop and keep searching waiting for new results
https://github.com/serginator/wallasearch
heroku python python3 telegram telegram-bot wallapop wallapop-search
Last synced: over 1 year ago
JSON representation
Python3 script to run searches in wallapop and keep searching waiting for new results
- Host: GitHub
- URL: https://github.com/serginator/wallasearch
- Owner: serginator
- Created: 2022-04-12T15:14:30.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T14:25:10.000Z (over 3 years ago)
- Last Synced: 2024-04-14T06:17:26.370Z (about 2 years ago)
- Topics: heroku, python, python3, telegram, telegram-bot, wallapop, wallapop-search
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
wallasearch
===========
Quick proyect for OSX in `Python3` to search for products in Wallapop, save them in pickle files and keep searching every X seconds (60 by default) to monitorize for new products. It will warn you when a new product is found with a notification in the system. If you find the text `a` it will create a file `a.pickle` with the results, so when you search for it again it will only show the new results.
### Usage
```python
~/wallasearch (master ✔) ᐅ pip3 install -r requirements.txt
~/wallasearch (master ✔) ᐅ python3 wallasearch.py
################################################
# Author: Sergio Ruiz #
# Github: @serginator #
################################################
USAGE: python3 wallasearch.py -s
OPTIONS:
-h, --help
-s, --search (if more than one word, use quotes)
-t, --time
~/wallasearch ᐅ python3 wallasearch.py -s "Lovecraft"
Searching Lovecraft...
New items:
Cthulhu 6 figuras de resina - 15.0
Juego de LOVECRAFT - 25.0
Lovecraft - 5.0
...
Searching Lovecraft...
```
### Config
In the script file there are three constants that you can modify
```python
# default
LOOP_TIME = 60; # seconds between executions by default
USER_CITY = "Madrid"; # city to search by default
COUNTRY_CODE = "ES"; # country code to search by default
```
### Notifying through OSX
Just add --osx to the command line and it will send a notification to your OSX desktop.
### Notifying through Telegram
Just add --telegram to the command line and it will send a notification to your Telegram.
You also need to create a bot (@BotFather), get it's token and your internal id (@RawDataBot), and add it to the .env file.
Add them to the .env file.
```
TELEGRAM_BOT_TOKEN="1234567890:XXX"
TELEGRAM_CHAT_ID="1234567"
```
### Adding search term in .env
You can add a the term to search in the .env file to avoid typing it every time.
```
WHAT_TO_SEARCH="Lovecraft"
```