<center>
![Preview (1).png](https://files.peakd.com/file/peakd-hive/pynomiems/AKJ1uuzfmbcZW1W6CAthfyCh8zS9GYS4bDA1fm84H8G2PB8RLVQtnZJYbhbgrvK.png)<center>Imagen diseñada con <a href="https://www.canva.com/">canva</a> || Image designed with <a href="https://www.canva.com/">canva</a></sub></center>
</center>
<div class="text-justify">
Hola querido lector de mi blog. Si eres programador y a veces requieres realizar consultas urgentes en la web para resolver algún inconveniente o eres nuevo y requieres orientaciones para comprender como funciona el desarrollo de aplicaciones, esta publicación es para ti.
Hoy te presento un nuevo script para ti que podrás usarlo para que obtengas los títulos y enlaces del sitio web [codeutility](https://codeutility.org/), un sitio web diseñado y creado para desarrolladores de software para que usted disponga de acceso libre y en línea de uno de los mejores blogs de internet para hacer consultas sobre codificación, ya que cuenta con el respaldo de profesionales que efectúan investigaciones exhaustivas para proporcionar a sus lectores códigos precisos y perfectos que provienen de diversas fuentes del internet, incluyendo los que son elaborados por los editores de este sitio web.
Si eres programador espero que este recurso en línea te resulte útil y puedas disponer de excelentes referencias auxiliares para tus desarrollos.
Gracias por tomar parte de su valioso tiempo en visitar mi blog. Como de costumbre, el script con su respectivo resultado lo podrás encontrar más abajo. Nos vemos en la próxima publicación.
**Este script fue ejecutado con Python 3.9.13 en el sistema operativo Lubuntu 18.0.4.**
<blockquote>
Hello dear reader of my blog. If you are a programmer and sometimes you need to make urgent queries on the web to solve a problem or you are new and need guidance to understand how application development works, this post is for you.
Today I present a new script for you that you can use to get the titles and links from the website [codeutility](https://codeutility.org/), a website designed and created for software developers so that you have free online access to one of the best blogs on the Internet to make queries about coding, as it has the support of professionals who conduct extensive research to provide their readers with accurate and perfect codes that come from various sources on the Internet, including those that are developed by the editors of this website.
If you are a programmer, I hope you find this online resource useful and that you will have excellent auxiliary references for your developments.
Thank you for taking some of your valuable time to visit my blog. As usual, the script with its respective result can be found below. See you in the next post.
**This script was run with Python 3.9.13 on the Lubuntu 18.0.4 operating system.**
</blockquote>
<div>
<div class="text-justify">
<pre>
import asyncio
import aiohttp
from selectolax.parser import HTMLParser
headers={'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75'}
async def parsing_page():
async with aiohttp.ClientSession() as session:
for idx in range(1,11):
async with session.get(f'https://codeutility.org/page/{idx}/',headers=headers) as page:
codeutility=await page.text()
codeutility_raw_page=HTMLParser(codeutility)
for data_hl in codeutility_raw_page.css('header > h2 > a'):
headlines=data_hl.text(strip=True)
links=data_hl.attributes['href']
print(f'headlines: {headlines} links: {links}')
asyncio.run(parsing_page())
</pre>
</div>
<center>
![result.png](https://files.peakd.com/file/peakd-hive/pynomiems/23swfuNBLr26yCyir8nCgSAVW1kycLCEzzu2WLBoHbTXBeMemYygz43rgH6WLTUuWAgQ7.png)
</center>
---
<center>
## Text translated by <a href="https://www.deepl.com/es/translator">DeepL</a>
</center>