Skip to content

Instantly share code, notes, and snippets.

View 90vFan's full-sized avatar
🎯
Focusing

90vFan 90vFan

🎯
Focusing
View GitHub Profile
#! Robot Framework
*** Settings ***
Metadata Version 0.1.0
Metadata Author *Tset Noitamotua*
Metadata Created 2019.01.23
Documentation Demo - Data Driven Test with RF
...
@90vFan
90vFan / download.py
Created March 19, 2020 03:25 — forked from khardix/download.py
Python AsyncIO/aiohttp downloader with progressbars
#!/usr/bin/env python3.6
import asyncio
from contextlib import closing
import aiohttp
import tqdm
async def download(session, url, progress_queue):
@90vFan
90vFan / requests-with-retry.py
Last active June 12, 2019 01:21 — forked from benjiao/requests-with-retry.py
Python requests with retry
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,