Simple Introduction to CORS

最近在接一個外包的案子的時候遇到了一個error message Access to fetch at ‘https://some-web-service/’ from origin ‘http:...

March 19, 2024 · 3 min

AioHttp 取代 Requests

1 2 3 4 5 6 7 8 9 10 11 async def main(): async with aiohttp.ClientSession() as session: collected_data = [] depth = 0 max_depth = os.getenv('MAX_DEPTH') INITIAL_ADDRESSES = [#some addresses here] tasks = [process_transactions(session, address, API_KEY, depth, max_depth, collected_data) for address in INITIAL_ADDRESSES] await asyncio.gather(*tasks) save_to_csv(collected_data)

November 17, 2023 · 1 min