Buen día Hivers. Hoy compartiré con ustedes una pequeña utilidad para obtener los títulos y enlaces de un sitio web especializado en ofrecer información sobre una tecnología que está impactando y revolucionando las finanzas en nuestra sociedad, las criptomonedas. https://thedefiant.io/ Se especializa en abarcar todo lo relacionado sobre las aplicaciones descentralizadas en la red y sobre el Sector de las DeFi. Este sitio web también realiza investigaciones, elabora tutoriales y material informativo con fines educativos. Usted puede ingresar al sitio a realizar una suscripción en el newsletter para que obtenga acceso a información más avanzada y especializada.
En fin, si quieres aprender sobre el revolucionario mundo de las criptomonedas este otro de los sitios en el que puedes obtener información de alta calidad respaldada por profesionales del sector.
Les dejo el script y sus respectivos resultados para que puedan usarlo y entender su funcionamiento por medio del lenguaje Python. Hasta luego, gracias por leer.
Este script fue ejecutado con Python 3.9.2 en el sistema operativo Debian Bullseye.
Good morning Hivers. Today I will share with you a small utility to obtain the titles and links of a website specialized in offering information about a technology that is impacting and revolutionizing finance in our society, cryptocurrencies. https://thedefiant.io/ It specializes in covering everything related to decentralized applications on the network and about the DeFi Sector. This website also conducts research, produces tutorials and informative material for educational purposes. You can enter the site to subscribe to the newsletter to get access to more advanced and specialized information.
Anyway, if you want to learn about the revolutionary world of cryptocurrencies this another site where you can get high quality information backed by industry professionals.
I leave you the script and its respective results so you can use it and understand its operation through the Python language. See you later, thanks for reading.
This script was executed with Python 3.9.2 on Debian Bullseye operating system.
import httpx from selectolax.parser import HTMLParserclient=httpx.Client()
thedefiant=client.get('https://thedefiant.io/news/',follow_redirects=True).text
tdf=HTMLParser(thedefiant)for dataloop in tdf.css('div.uc_post_list_title:nth-child(1) > a'):
headlines=dataloop.text()
links=dataloop.attributes['href']
print(headlines,links)