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

avatar

Preview.png

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

Te presento un nuevo sitio web en el que ofrece cobertura informativa sobre el mercado tecnológico. Tambien ofrece guías y tutoriales sobre aplicaciones, comercio electrónico y sistema de gestión de contenido(CMS) y Dispone de reseñas y revisiones de dispositivos informáticos. El sitio en cuestión se llama how2shout y Fue lanzada en el 2016, desde ese entonces ha demostrado mantenerse firme en su labor informativa sobre tecnología hasta convertirse en uno de los sitios web más visitados.

Querido lector, aquí me despido. Ojalá puedas visitarlo y compartas en tu opinión en los comentarios. Si no, la próxima publicación tal vez conozcas el sitio ideal a tus propósitos. Gracias por tu tiempo.

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

I present a new website that offers informative coverage of the technology market. It also offers guides and tutorials on applications, e-commerce and content management system(CMS) and It has reviews and reviews of computing devices. The site in question is called how2shout and It was launched in 2016, since then it has proven to hold steady in its informative work on technology to become one of the most visited websites.

Dear reader, here I say goodbye. I hope you can visit it and share your opinion in the comments. If not, next issue you may find the ideal site for your purposes. 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()
how2shout=client.get(f'https://news.how2shout.com/page/{idx}/',headers=headers,follow_redirects=True).text
how2shout_raw=HTMLParser(how2shout)

for get_hl in how2shout_raw.css('h2 > a'):

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

result.png


Text translated by DeepL



0 comments