[ESP-ENG] Titulos y enlaces en bitcoinmarketjournal || Titles and links in bitcoinmarketjournal

avatar

result.png

Imagen diseñada con canva || Image designed with canva

Hola lector de mi blog. En esta ocasión traigo para ti un nuevo sitio web que podrás consultar noticias sobre criptomonedas. Encontrarás guías, estrategias y herramientas que puedes referenciar para definir tu portafolio de inversiones en diferentes pares de criptoactivos. Puedes acceder a reportes detallados que en mi opinión son muy buenos para aprender sobre aspectos básicos en el mundo de las inversiones. El único detalle es que muchas de sus publicaciones requieren suscripción que no he podido revisar, pero si puedo decirte que el contenido gratuito es bueno con fines de obtener aprendizajes esenciales.

Bueno, es lo poquito que puedo aportar hoy por acá. Pero tranquilo, mañana será otro día. Así que espero encontrarte pronto por acá con la posibilidad de leer tu comentario.

Enlace al sitio web: bitcoinmarketjournal

Este script fue ejecutado con Python 3.9.13 en el sistema operativo Lubuntu 18.04.6.

Hello reader of my blog. This time I bring for you a new website where you can check news about cryptocurrencies. You will find guides, strategies and tools that you can reference to define your investment portfolio in different cryptoasset pairs. You can access detailed reports that in my opinion are very good to learn about basic aspects in the investment world. The only detail is that many of their publications require subscription that I have not been able to review, but I can tell you that the free content is good for essential learning purposes.

Well, that's the little I can contribute here today. But don't worry, tomorrow will be another day. So I hope to find you here soon with the possibility of reading your comment.

Link to website: bitcoinmarketjournal

This script was run with Python 3.9.13 on Lubuntu 18.04.6 operating system.

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,6): 
        
        async with session.get(f'https://www.bitcoinmarketjournal.com/page/{idx}/',headers=headers) as page:
            
            bitcoinmarketjournal=await page.text() 
            bitcoinmarketjournal_raw=HTMLParser(bitcoinmarketjournal)
             
            for hl in bitcoinmarketjournal_raw.css('h3 > a'):

                headlines=hl.text(strip=True)
                links=hl.attributes['href']

                print(f'headlines: {headlines} links: {links}')

asyncio.run(parsing_page())

result.png


Text translated by DeepL



0 comments