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

avatar

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

Hola hivers. Espero que la estén pasando bien. En esta nueva entrega les traigo un nuevo sencillo script usando Python con la finalidad de obtener los títulos y enlaces del portal de noticias newsweek.

Este portal de noticias dispone de muchos tópicos. Entre ellos el de tecnología.

Esta mañana cuando navegaba en este portal del internet, mientras revisaba sobre novedades tecnológicas, encontré un titular que me llamo mucho la atención: China May Be Using AI to Determine People's Response to 'Thought Education'.

Me ha dejado perplejo y preocupado el hecho de que un gobierno pueda ser capaz de incorporar en sus sistemas de vigilancia, una IA para realizar un monitoreo constante de ondas cerebrales a sus ciudadanos con el propósito de evaluar la receptiva con relación a los contenidos que un momento específico esté procesando atreves de la lectura.

Sabemos que la IA es capaz de dejarnos perplejos por sus magníficos resultados que seguramente ha dejado a muchos personas fascinadas y su uso es cada vez más notorio. Pero una IA en manos de un gobierno que distribuye su ideología poblacionalmente para tener un control más predecible y sugestionar a sus ciudadanos, es algo que pude convertirse en una cuestión muy delicada como una especie de tendencia política-ideológica extremista.

Por supuesto, abogó por un futuro donde no se puede usar la IA-sea por gobiernos o instituciones- en una determinación como describe el artículo susodicho.

Bueno mi hivers, aquí humildemente culmino hasta entrega. Me despido de ustedes. Agradezco una vez más su permanencia en esta lectura.

Más abajo encontrarán el script con sus respectivos resultados. Hasta pronto.

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

Hello hivers. I hope you are having a good time. In this new installment I bring you a new simple script using Python with the purpose of getting the titles and links from the news portal newsweek.

This news portal has many topics. Among them the technology one.

This morning when I was surfing this internet portal, while checking on technological news, I found a headline that caught my attention: China May Be Using AI to Determine People's Response to 'Thought Education'.

I have been perplexed and concerned about the fact that a government may be able to incorporate in its surveillance systems, an AI to perform a constant monitoring of brainwaves to its citizens in order to evaluate the receptivity in relation to the contents that a specific moment is processing through reading.

We know that AI is capable of leaving us perplexed by its magnificent results that have surely left many people fascinated and its use is becoming more and more notorious. But an AI in the hands of a government that distributes its ideology population-wise in order to have a more predictable control and to suggest its citizens, is something that could become a very sensitive issue as a kind of extremist political-ideological tendency.

Of course, I advocated for a future where AI-whether by governments or institutions-cannot be used in a determination as described in the aforementioned article.

Well my hivers, here I humbly culminate until delivery. I bid you farewell. I thank you once again for your continued reading.

Below you will find the script with its respective results. See you soon.

This script was run with Python 3.9.13 on the 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'}

for index in range(1,5):

client=httpx.Client()
newsweek=client.get(f'https://www.newsweek.com/tech-science?page={index}',headers=headers).text
newsweek_page=HTMLParser(newsweek)

for hl in newsweek_page.css('div.inner > h3 > a'):
    
    l=hl.attributes['href']
    h=hl.text(strip=True)
    print(f'links: {l} headlines: {h}')

result.png


Text translated by DeepL



0 comments