divar-telegram-bot icon indicating copy to clipboard operation
divar-telegram-bot copied to clipboard

Pagination changes on divar api

Open debMan opened this issue 3 years ago • 1 comments

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.

debMan avatar Feb 05 '23 22:02 debMan

Hacky solution:

https://github.com/ehcaning/divar-telegram-bot/blob/138874ba324f10d05f54fee5789e914e4929b773/main.py#L110

- pages = [2, ""] 
+ pages = [""] 

debMan avatar Feb 05 '23 22:02 debMan