Web development

Completado Publicado hace 6 años Pagado a la entrega
Completado Pagado a la entrega

Help with my Own script,search and grab string from list of pages using GPU and CPU power

Here is example of the script:
import random
import asyncio
from aiohttp import ClientSession
from bs4 import BeautifulSoup
async def fetch(url, session):
async with session.get(url) as response:
delay = response.headers.get("DELAY")
date = response.headers.get("DATE")
print("{}:{} with delay {}".format(date, response.url, delay))
return await response.read()


async def bound_fetch(sem, url, session):
# Getter function with semaphore.
async with sem:
await fetch(url, session)


async def run(r):
url = "http://10.20.30.51:8085/{}"
tasks = []

# create instance of Semaphore
sem = asyncio.Semaphore(3000)

# Create client session that will ensure we dont open new connection
# per each request.
async with ClientSession() as session:
for i in range(r):
# pass Semaphore and session to every GET request
task = asyncio.ensure_future(bound_fetch(sem, url.format(i), session))
tasks.append(task)
responses = asyncio.gather(*tasks)
await responses

number = 1000000
loop = asyncio.get_event_loop()
future = asyncio.ensure_future(run(number))
data = loop.run_until_complete(future)

I want to add search query (Keyword) if the keyword existing the loop end
you can use BeautifulSoup options

Programación en C Python

Nº del proyecto: #16454838

Sobre el proyecto

12 propuestas Proyecto remoto Activo hace 6 años

Adjudicado a:

shaliniramadass

Hello, This is Shyamala @ HAT. Hudson Agile Technologies LLC – A New Jersey Firm. Entity ID – 0450219485 We are head quartered in 30 Knightsbridge Rd Suite 525, Piscataway Township, NJ 0885 We are a Software T Más

$25 USD en 1 día
(1 comentario)
0.8

12 freelancers están ofertando un promedio de $29 por este trabajo

manjeet2017

Hi, I went through your requirement and feel comfortable to do this job. I have good experience in website design & development. Please initiate chat to discuss further.

$25 USD en 1 día
(2 comentarios)
2.4
nikunjv9737

Hello sir, - I have a good experience in google keyword planner, Google adwords,google analytics , - I worked as team player, remotely and in office. I know how to manage my time effectively. - I do not afraid Más

$25 USD en 1 día
(0 comentarios)
0.0
vaniharshit

i have gone through your job post.

$35 USD en 2 días
(0 comentarios)
0.0
sevenlatter

Hi there, We can decide rates from your side (price can be negotiated) Thanks for sharing basic requirements about the project. I have done many project web and app. i can understand your requirement very well becau Más

$25 USD en 1 día
(0 comentarios)
0.0
somtarainfotech

Hello, we can design & developed website very well. We have 8+ year experience with relevant skills. We have completed lots of project in our past. We believe in client satisfactions and delivery of work on time wi Más

$25 USD en 3 días
(0 comentarios)
0.0