This file contains hidden or 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
import asyncio | |
import nest_asyncio | |
nest_asyncio.apply() | |
async def task(batch_no,roll_no): | |
return batch_no,roll_no | |
async def batch_creator(batch_no): | |
result = [] | |
for roll_no in range(BATCH_SIZE): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
''' | |
Reuire More than 12 GB ram to process all the request.. | |
''' | |
import asyncio | |
from aiohttp import ClientSession | |
import nest_asyncio | |
nest_asyncio.apply() | |
async def hello(url): |
This file contains hidden or 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
import threading | |
from time import sleep | |
from threading import Thread | |
def doSleep(): | |
sleep(300) | |
i = 0 | |
while True: | |
i += 1 |
This file contains hidden or 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
with open('urls.txt','w') as f: | |
for i in range(1000_000): | |
f.write('https://example.com'+'\n') | |
from urllib.parse import urlparse | |
from threading import Thread | |
import http.client, sys |
This file contains hidden or 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 python | |
# Origal Soruce: https://gist.github.com/Lazza/bbc15561b65c16db8ca8 | |
"""Pick server and start connection with VPNGate (http://www.vpngate.net/en/)""" | |
import requests, os, sys, tempfile, subprocess, base64, time | |
__author__ = "Andrea Lazzarotto" | |
__copyright__ = "Copyright 2014+, Andrea Lazzarotto" |
NewerOlder