This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! Robot Framework | |
| *** Settings *** | |
| Metadata Version 0.1.0 | |
| Metadata Author *Tset Noitamotua* | |
| Metadata Created 2019.01.23 | |
| Documentation Demo - Data Driven Test with RF | |
| ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3.6 | |
| import asyncio | |
| from contextlib import closing | |
| import aiohttp | |
| import tqdm | |
| async def download(session, url, progress_queue): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from requests.adapters import HTTPAdapter | |
| from requests.packages.urllib3.util.retry import Retry | |
| def requests_retry_session(retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504)): | |
| session = requests.Session() | |
| retry = Retry( | |
| total=retries, | |
| read=retries, |