Showing
2 changed files
with
8 additions
and
6 deletions
| ... | ... | @@ -12,6 +12,7 @@ from time import sleep |
| 12 | 12 | import os |
| 13 | 13 | import urllib |
| 14 | 14 | |
| 15 | + | |
| 15 | 16 | def retry_if_request_failed(exception): |
| 16 | 17 | status_code = getattr(exception, 'status_code', None) |
| 17 | 18 | print(status_code) |
| ... | ... | @@ -146,6 +147,7 @@ def get_contracts_feed(client, interval=0.5): |
| 146 | 147 | for item in get_items_feed(client, 'get_contracts', interval): |
| 147 | 148 | yield item |
| 148 | 149 | |
| 150 | + | |
| 149 | 151 | def get_items_feed(client, client_method, interval=0.5): |
| 150 | 152 | items = True |
| 151 | 153 | while items: | ... | ... |
| ... | ... | @@ -5,7 +5,7 @@ users: |
| 5 | 5 | plans: [test.quintagroup.com, test.quintagroup.com] |
| 6 | 6 | auctions: [test.quintagroup.com, bc698baa8b814908bc75405ed3d63548] |
| 7 | 7 | api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 |
| 8 | - auth_dasu: [dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4, dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4] | |
| 8 | + auth_dasu: [test.quintagroup.com, e9c3ccb8e8124f26941d5f9639a4ebc3] | |
| 9 | 9 | broker: Quinta |
| 10 | 10 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] |
| 11 | 11 | browser: phantomjs |
| ... | ... | @@ -17,7 +17,7 @@ users: |
| 17 | 17 | plans: [test.quintagroup.com, test.quintagroup.com] |
| 18 | 18 | auctions: [test.quintagroup.com, bc698baa8b814908bc75405ed3d63548] |
| 19 | 19 | api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 |
| 20 | - auth_dasu: [dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4, dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4] | |
| 20 | + auth_dasu: [test.quintagroup.com, e9c3ccb8e8124f26941d5f9639a4ebc3] | |
| 21 | 21 | broker: Quinta |
| 22 | 22 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] |
| 23 | 23 | browser: phantomjs |
| ... | ... | @@ -29,7 +29,7 @@ users: |
| 29 | 29 | plans: [test.quintagroup.com, test.quintagroup.com] |
| 30 | 30 | auctions: [test.quintagroup.com, bc698baa8b814908bc75405ed3d63548] |
| 31 | 31 | api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 |
| 32 | - auth_dasu: [dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4, dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4] | |
| 32 | + auth_dasu: [test.quintagroup.com, e9c3ccb8e8124f26941d5f9639a4ebc3] | |
| 33 | 33 | broker: Quinta |
| 34 | 34 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] |
| 35 | 35 | browser: phantomjs |
| ... | ... | @@ -41,7 +41,7 @@ users: |
| 41 | 41 | plans: [test.quintagroup.com, test.quintagroup.com] |
| 42 | 42 | auctions: [test.quintagroup.com, bc698baa8b814908bc75405ed3d63548] |
| 43 | 43 | api_key: e9c3ccb8e8124f26941d5f9639a4ebc3 |
| 44 | - auth_dasu: [dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4, dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4] | |
| 44 | + auth_dasu: [test.quintagroup.com, e9c3ccb8e8124f26941d5f9639a4ebc3] | |
| 45 | 45 | broker: Quinta |
| 46 | 46 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] |
| 47 | 47 | browser: phantomjs |
| ... | ... | @@ -54,7 +54,7 @@ users: |
| 54 | 54 | monitorings: [test.quintagroup.com, test.quintagroup.com] |
| 55 | 55 | auctions: [test.quintagroup.com, bc698baa8b814908bc75405ed3d63548] |
| 56 | 56 | api_key: "" |
| 57 | - auth_dasu: [dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4, dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4] | |
| 57 | + auth_dasu: [test.quintagroup.com, e9c3ccb8e8124f26941d5f9639a4ebc3] | |
| 58 | 58 | broker: Quinta |
| 59 | 59 | browser: chrome |
| 60 | 60 | auth_edr: [test.quintagroup.com, f5111c99a97a45348d8165ba8fcf0d62] |
| ... | ... | @@ -65,7 +65,7 @@ users: |
| 65 | 65 | monitorings: [test.quintagroup.com, test.quintagroup.com] |
| 66 | 66 | plans: [test.quintagroup.com, test.quintagroup.com] |
| 67 | 67 | tenders: [test.quintagroup.com, test.quintagroup.com] |
| 68 | - auth_dasu: [dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4, dGVzdF9zYXM6dGVzdF9zYXNfdG9rZW4] | |
| 68 | + auth_dasu: [robot_test_sas, 9987b551710b44699bf2ad10188bcf65] | |
| 69 | 69 | api_key: 9987b551710b44699bf2ad10188bcf65 |
| 70 | 70 | broker: Quinta |
| 71 | 71 | browser: phantomjs | ... | ... |
Please
register
or
login
to post a comment