summaryrefslogtreecommitdiff
path: root/main.py
AgeCommit message (Collapse)Author
40 hoursrefactor: wrap the fetching-task with the semaphoreHEADmainBrandon C. Irizarry
That is, do that instead of wrapping the code inside 'fetch'. The current approach conveys more pithily what our intention is - that 'fetch' is the entirety of the asynchronous task we want to "rate limit".
3 daysfeat: configure max_concurrency from the command lineBrandon C. Irizarry
3 daysdocs: add docstring to 'fetch'Brandon C. Irizarry
3 daysfeat: use a semaphore to limit how many tasks make requestsBrandon C. Irizarry
3 daysfeat: use taskgroup + flush printing of '.' + catch timeouterrorBrandon C. Irizarry
3 daysfeat: use full concurrency (no semaphores)Brandon C. Irizarry
3 daysfeat: add a timeout for sites that don't respondBrandon C. Irizarry
This should diminish the urge for reaching for Ctrl+C.
3 daysfeat: ping sites sequentially and measure how long it takesBrandon C. Irizarry
3 daysdocs: improve docstringBrandon C. Irizarry
That is, make it more accurate and specific.
3 daysfeat: read N URLs via command-line parameter from CSV fileBrandon C. Irizarry
3 dayschore: start projectBrandon C. Irizarry