[ESP-ENG] Títulos y enlaces en smartdatacollective || Titles and links in smartdatacollective

avatar

Preview.pngImagen diseñada con canva || Image designed with canva

Saludos hivers. Les presento otro simple script elaborado con Python y que precisamente lo he creado para obtener enlaces y títulos del sitio web smartdatacollective.

Nuevamente, les traigo otro sitio web enfocado en proporcionarnos noticias sobre ciencia de datos e investigaciones y uso de aplicaciones relacionadas con este campo del saber humano. La web está muy enfocada mayormente en compartir contenido sobre la gestión de datos de forma remota en la nube.

En cuanto a la calidad de las publicaciones, debo decir que tienen una elaboración profesional y el diseño del sitio web es simple y libre de publicidad intrusiva. La verdad es un sitio de mis preferencias estéticas para consultas rápidas.

Espero que la visita a este sitio web sea de agrado para ustedes y que el empleo de mi script también les resulte útil.

Bueno, no tengo nada más que agregar. Como de costumbre, dejo el script con sus respectivos resultados. Gracias por su visita. Espero que vuelvan pronto.

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

Greetings hivers. Here is another simple Python script that I have created to get links and titles from the web site smartdatacollective.

Again, I bring you another website focused on providing news about data science and research and use of applications related to this field of human knowledge. The website is very focused mostly on sharing content about remote data management in the cloud.

As for the quality of the publications, I must say that they are professionally produced and the design of the website is simple and free of intrusive advertising. The truth is a site of my aesthetic preferences for quick queries.

I hope that you will enjoy visiting this website and that you will also find the use of my script useful.

Well, I have nothing more to add. As usual, I leave the script with its respective results. Thanks for your visit. I hope you come back soon.

This script was executed with Python 3.9.13 on Lubuntu 18.0.4 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(headers=headers)
smartdatacollective=client.get('https://www.smartdatacollective.com/').text
smartdatacollective_site=HTMLParser(smartdatacollective)

for hl in smartdatacollective_site.css('h2 > a'):

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

Result.png


Text translated by DeepL



1 comments
avatar

Congratulations @pynomiems! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You published more than 100 posts.
Your next target is to reach 150 posts.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out the last post from @hivebuzz:

Hive Power Month - New Tracking Calendar
Our Hive Power Delegations to the May Power Up Month Winners
Feedback from the June 1st Hive Power Up Day
Support the HiveBuzz project. Vote for our proposal!
0
0
0.000