create account

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

View this thread on: hive.blogpeakd.comecency.com
· @pynomiems ·
$5.38
[ESP-ENG] Titulos y enlaces en cryptoadventure || Titles and links in cryptoadventure
<center>

![Preview.png](https://files.peakd.com/file/peakd-hive/pynomiems/AKVW9T5w3WEym3H1dbWXRUvRzKA8iS7sTquBpHzSs3HtdNzgRLBymmeHVveFoQN.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">

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>

![result I.JPG](https://files.peakd.com/file/peakd-hive/pynomiems/23swpmCk5QM6a16de7UDJtPtThZ6RytpwuP9PgEsZE9mAPZxSojkosqjCfcb6cJ4SZduq.JPG)

![result II.JPG](https://files.peakd.com/file/peakd-hive/pynomiems/23wfp7Tw1vE55sLfUxuArLkT7uEcd9CYUrVFLJy2rKz63B1XhFQdSoU1Na3w1bWZKGABa.JPG)


</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-cryptoadventure-oror-titles-and-links-in-cryptoadventure
categoryhive-148441
json_metadata{"app":"peakd/2022.07.1","format":"markdown","tags":["development","news","blog","tech","cryptocurrencies"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/pynomiems/AKVW9T5w3WEym3H1dbWXRUvRzKA8iS7sTquBpHzSs3HtdNzgRLBymmeHVveFoQN.png","https://files.peakd.com/file/peakd-hive/pynomiems/23swpmCk5QM6a16de7UDJtPtThZ6RytpwuP9PgEsZE9mAPZxSojkosqjCfcb6cJ4SZduq.JPG","https://files.peakd.com/file/peakd-hive/pynomiems/23wfp7Tw1vE55sLfUxuArLkT7uEcd9CYUrVFLJy2rKz63B1XhFQdSoU1Na3w1bWZKGABa.JPG"]}
created2022-09-14 19:42:48
last_update2022-09-14 19:42:48
depth0
children0
last_payout2022-09-21 19:42:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value5.375 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length3,641
author_reputation273,261,352,410,025
root_title"[ESP-ENG] Titulos y enlaces en cryptoadventure || Titles and links in cryptoadventure"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id116,620,272
net_rshares16,098,455,228,043
author_curate_reward""
vote details (7)