<center>
<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">
Hoy te presento un nuevo script para que puedas usarlo en el sitio web [cryptoadventure](https://cryptoadventure.com/). Con dicho script podrás obtener los títulos y enlaces sobre diferentes tópicos relacionados con el mundo de las criptomonedas, con ello me refiero sobre altcoins, blockchain, Trading, NFT, DeFi, Exchange, reportes y análisis sobre los acontecimientos más relevantes relacionados con el criptoespacio, un lugar que puede ser para ti muy importante en la búsqueda de cobertura informativa en tiempo real fiable y de excelente calidad como lo promete este sitio web que he traído para ti.
Espere que puedas visitar este sitio y valerte del script de Python que encontraras más bajo para ti.
Puedes dejar comentarios y con gusto los leeré. Gracias por leer esta brevísima entrega. Pronto volveré con más para ti.
**Este script fue ejecutado con Python 3.9.13 en el sistema operativo Windows 10.**
<blockquote>
Today I present a new script for you to use in the [cryptoadventure](https://cryptoadventure.com/) website. With this script you will be able to get the titles and links about different topics related to the world of cryptocurrencies, by that I mean about altcoins, blockchain, Trading, NFT, DeFi, Exchange, reports and analysis about the most relevant events related to the crypto space, a place that can be for you very important in the search for reliable and excellent quality real time news coverage as promised by this website that I have brought for you.
Hope you can visit this site and avail yourself of the Python script that you will find below for you.
Feel free to leave comments and I will be glad to read them. Thanks for reading this very short installment. I'll be back with more for you soon.
**This script was run with Python 3.9.13 on Lubuntu 18.04.6 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 get_data_page():
async with aiohttp.ClientSession() as session:
for find_idx in range(1,6):
async with session.get(f'https://cryptoadventure.com/news/page/{find_idx}/',headers=headers) as page:
cryptoadventure = await page.text()
cryptoadventure_html_pages = HTMLParser(cryptoadventure)
for l,h in zip(cryptoadventure_html_pages.css('div.post-description > a'),cryptoadventure_html_pages.css('div.post-description > a > div > p')):
titles=h.text(strip=True)
links=l.attributes['href']
print(f'headlines: {titles} links: {links}')
asyncio.run(get_data_page())
</pre>
</div>
<center>


</center>
---
<center>
## Text translated by <a href="https://www.deepl.com/es/translator">DeepL</a>
</center>