summaryrefslogtreecommitdiff
path: root/app/test.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-16 12:54:42 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-02-16 12:54:42 +0300
commit94463e4926519fe2edc033cefac50d6690ed9a0a (patch)
treeb9d68d7353a584f48546f93603ea282be7b0ea3d /app/test.py
parentf01e27a00b9931b28ff8184751dedbe64db79ea2 (diff)
fixes, improvements. added text filter.
Diffstat (limited to 'app/test.py')
-rw-r--r--app/test.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/app/test.py b/app/test.py
deleted file mode 100644
index a0481e2..0000000
--- a/app/test.py
+++ /dev/null
@@ -1,15 +0,0 @@
-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