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

avatar

Preview.png

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

Hola lector de mi blog. Como de costumbre, hoy traigo para ti otro sitio web con su respectivo script de Python. Se llama globalcryptopress dispuesta ofrecerte cobertura sobre noticias, eventos, videos y revisiones de ICOS relacionados con el ecosistema de las criptomonedas. No es un sitio que destaca por análisis técnicos y criptográficos avanzados basados en blockchain, pero sí que puedes considerar para al menos seguir tendencias sobre desarrollo e inversiones en De Fi, NFT y Metaverso y cuáles son los factores que inciden en la formación de precios y valorización de los criptoactivos en el mercado.

Es todo lo que compartiré hoy con ustedes, puedes dejar tu opinión y con gusto te responderé. Gracias por tu pequeña porción de tu tiempo. Hasta pronto.

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

Hello reader of my blog. As usual, today I bring for you another website with its respective Python script. It's called globalcryptopress ready to offer you coverage on news, events, videos and ICOS reviews related to the cryptocurrency ecosystem. It is not a site that stands out for advanced technical and cryptographic analysis based on blockchain, but one that you can consider to at least follow trends on development and investments in De Fi, NFT and Metaverse and what are the factors that impact the price formation and valuation of cryptoassets in the market.

That's all I will share with you today, you can leave your feedback and I will gladly respond. Thanks for your small portion of your time. See you soon.

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

import httpx
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'}

client=httpx.Client()
globalcryptopress=client.get('https://www.globalcryptopress.com/',headers=headers).text
globalcryptopress_raw=HTMLParser(globalcryptopress)

for get_data in globalcryptopress_raw.css('h3.title-post > a,h3.title-post.entry-title > a'):

l=get_data.attrs['href']
h=get_data.text(strip=True)

print(f'links: {l} | headlines:{h}')

result.png


Text translated by DeepL



0 comments