Open debMan opened 1 year ago
There is a change in the Divar paginations method. Here is inspect from browser:
curl 'https://api.divar.ir/v8/web-search/1/real-estate' -X POST --data-raw '{"json_schema":{"category":{"value":"real-estate"},"cities":["1"]},"last-post-date":1675632336941726}'
It would be nice to apply this because the script fails currently.
Hacky solution:
https://github.com/ehcaning/divar-telegram-bot/blob/138874ba324f10d05f54fee5789e914e4929b773/main.py#L110
- pages = [2, ""] + pages = [""]
There is a change in the Divar paginations method. Here is inspect from browser:
It would be nice to apply this because the script fails currently.