diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-01-03 21:41:50 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-01-03 21:44:01 +0300 |
commit | d05ab59b47a25432672cfe5b7ba53f3cb1a6d6cb (patch) | |
tree | 71f2f306d640a65bd92545a61b955071663976c8 /app/test.py |
initial commit
Diffstat (limited to 'app/test.py')
-rw-r--r-- | app/test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/test.py b/app/test.py new file mode 100644 index 0000000..a0481e2 --- /dev/null +++ b/app/test.py @@ -0,0 +1,15 @@ +import acmespb +import sys +from pprint import pprint + +if __name__ == "__main__": + #pprint(acmespb.trade_names("Марена красильная корневища и корни")) + page = 1 + pages = 0 + target_url = None + while pages == 0 or page <= pages: + target_url, pages, offers = acmespb.offers("Верошпирон", 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 |