create account

[ESP-ENG] Titulos y enlaces en codeutility || Titles and links in codeutility by pynomiems

View this thread on: hive.blogpeakd.comecency.com
· @pynomiems ·
$5.79
[ESP-ENG] Titulos y enlaces en codeutility || Titles and links in codeutility
<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>
👍  , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorpynomiems
permlinkesp-eng-titulos-y-enlaces-en-codeutility-oror-titles-and-links-in-codeutility
categoryhive-148441
json_metadata{"app":"peakd/2022.07.1","format":"markdown","tags":["development","programming","coding","program"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/pynomiems/AKJ1uuzfmbcZW1W6CAthfyCh8zS9GYS4bDA1fm84H8G2PB8RLVQtnZJYbhbgrvK.png","https://files.peakd.com/file/peakd-hive/pynomiems/23swfuNBLr26yCyir8nCgSAVW1kycLCEzzu2WLBoHbTXBeMemYygz43rgH6WLTUuWAgQ7.png"]}
created2022-08-14 20:20:39
last_update2022-08-14 20:20:39
depth0
children1
last_payout2022-08-21 20:20:39
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value5.791 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,073
author_reputation273,261,352,410,025
root_title"[ESP-ENG] Titulos y enlaces en codeutility || Titles and links in codeutility"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,721,504
net_rshares16,201,684,892,924
author_curate_reward""
vote details (23)
@hivebuzz ·
Congratulations @pynomiems! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

<table><tr><td><img src="https://images.hive.blog/60x60/http://hivebuzz.me/badges/postallweek.png"></td><td>You have been a buzzy bee and published a post every day of the week.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@pynomiems) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>



###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22199%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/199)!
properties (22)
authorhivebuzz
permlinknotify-pynomiems-20220815t052011
categoryhive-148441
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-08-15 05:20:12
last_update2022-08-15 05:20:12
depth1
children0
last_payout2022-08-22 05:20:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length799
author_reputation368,207,599,408,887
root_title"[ESP-ENG] Titulos y enlaces en codeutility || Titles and links in codeutility"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,731,907
net_rshares0