ADI-Labs / calendar

1 stars 10 forks source link

Use Asyncio #123

Open alanhdu opened 8 years ago

alanhdu commented 8 years ago

Asyncio is Python's new standard asynchronous I/O library. We should use it when scraping (we'll have to replace requests with aiohttp).

We may want to upgrade to Python 3.5 so we can get the async and await syntactic sugar.

alanhdu commented 8 years ago

An alternative would be to use a threadpool with concurrent.futures. Look into the facebook scraper.