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

avatar

Preview.png

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

Hola lector de mi blog. En esta ocasión te presento enate una empresa que ofrece servicios y software de automatización. En este caso solo elabore en script de Python para que extraiga los títulos y enlaces en su blog en el que encontraras fácilmente cobertura informativa sobre las tecnologías predominantes, las innovaciones, desarrollos, métodos de gestión en el área de la automatización para diferentes sectores de la economía como el industrial y el agrícola. Tiene aplicaciones interesantes, pero en esta publicación no las mencionaré es un tema un poco complejo y eso significaría desviarme del propósito principal para qué uso este blog, en convertirlo en agregador de sitios web sobre noticias y blog.

Pero tu lector sí puedes ingresar y formar tu criterio sobre los servicios que ofrece esta empresa, con la posibilidad de que puedes dejar tu opinión al respecto en la sección de comentarios. Gracias por tu visita. Espero encontrarte en la próxima publicación.

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 introduce you enate a company that offers automation software and services. In this case I just elaborated in Python script to extract the titles and links in their blog where you will easily find informative coverage about the predominant technologies, innovations, developments, management methods in the area of automation for different sectors of the economy such as industrial and agricultural. It has interesting applications, but in this post I will not mention it is a bit complex topic and that would mean to deviate from the main purpose of what I use this blog for, to turn it into an aggregator of news and blog websites.

But you, the reader, can enter and form your own criteria about the services offered by this company, with the possibility that you can leave your opinion about it in the comments section. Thanks for your visit. I look forward to meeting you in the next issue.

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 get_index in range(1,6):

client=httpx.Client()
enate=client.get(f'https://www.enate.io/blog/page/{get_index}',headers=headers,follow_redirects=True).text
enate_raw=HTMLParser(enate)

for find_hl in enate_raw.css('a.keychainify-checked'):

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

result.png


Text translated by DeepL



0 comments