diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-02-16 12:54:42 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-02-16 12:54:42 +0300 |
commit | 94463e4926519fe2edc033cefac50d6690ed9a0a (patch) | |
tree | b9d68d7353a584f48546f93603ea282be7b0ea3d /test.py | |
parent | f01e27a00b9931b28ff8184751dedbe64db79ea2 (diff) |
fixes, improvements. added text filter.
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +import acmespb + +if __name__ == "__main__": + q_empty = "Волекам" + q_many = "Верошпирон" + + #pprint(acmespb.trade_names("Марена красильная корневища и корни")) + + page = 1 + pages = 0 + target_url = None + while pages == 0 or page <= pages: + target_url, pages, offers = acmespb.offers(q_empty, page=page, target_url=target_url) + print("[%d] pages=%d, target_url=%s" % (page, pages, target_url)) + for offer in offers: + print(offer.as_dict()) + page += 1
\ No newline at end of file |