This file contains 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 | |
import datetime | |
def getholidays(year): | |
"""Return a set public holidays in CZ as (day, month) tuples.""" | |
holidays = { | |
(1, 1), #Novy rok | |
(1, 5), #Svatek prace | |
(8, 5), #Den vitezstvi |
This file contains 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): |