morrolinux / subito-it-searcher

searcher for subito.it
94 stars 35 forks source link

Bug report: if I do a search without including the minimum price, but only the maximum price, the results are distorted #19

Closed LucaSforza closed 1 year ago

LucaSforza commented 1 year ago

For example if I ran this search: python3 subito-searcher.py --add "orologi" --url "https://www.subito.it/annunci-italia/vendita/usato/?q=orologi" --maxPrice "700" I'll get results like this: Rolex oyster perpetual : 4.500 € --> Alassio (SV) but 4.500 is greater than 700. I think the problem is that strings are used to represent the prices, in fact you can run into many bugs like this, but it should be easy enough to fix, just convert the strings to integers.