summaryrefslogtreecommitdiff
path: root/app/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/test.py')
-rw-r--r--app/test.py15
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