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

avatar

Preview.png

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

Hola lector de mi blog. Sí, traigo más páginas de noticias y blogs para ti. Esta vez creo que te presentaré uno muy popular. Se llama 99bitcoins. Creo que puedes intuir que se trata de un sitio sobre bitcoin. Efectivamente, es así. Tiene recursos informativos generalmente de propósito educativo e introductorio sobre criptomonedas y blockchain, por supuesto, contiene noticias siembre con el propósito de no quedarse atrás sobre las novedades del mundo cripto; la tecnología disruptiva que viene a romper paradigmas y dogmas economicistas donde las sociedades pueden adaptar otras formas de intercambio de valores.

Bueno, creo que es todo lo que puedo aportar en esta entrega pequeña entrega. Puedes comentar y estaré pendiente de responderte. Espero encontrarte en la siguiente extraña. Gracias por tu tiempo.

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

Hello reader of my blog. Yes, I bring more news sites and blogs for you. This time I think I will introduce you to a very popular one. It is called 99bitcoins. I think you can sense that it is a site about bitcoin. Indeed, it is. It has informative resources generally of educational and introductory purpose about cryptocurrencies and blockchain, of course, it contains news always with the purpose of not lagging behind about the novelties of the crypto world; the disruptive technology that comes to break paradigms and economistic dogmas where societies can adapt other forms of value exchange.

Well, I think that's all I can contribute in this small delivery. You can comment and I will be waiting to answer you. I hope to meet you in the next stranger. Thanks for your time.

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

for idx in range(1,5):

client=httpx.Client()
bitcoins_news_page=client.get(f'https://99bitcoins.com/category/news/page/{idx}/',headers=headers).text
bitcoins_raw_hml=HTMLParser(bitcoins_news_page)

for find_hl in bitcoins_raw_hml.css('header > h2 > a'):

    print(f"Titles: {find_hl.text(strip=True)},Links: {find_hl.attrs['href']}")

result.png


Text translated by DeepL



0 comments