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

avatar

Preview.png

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

Hola lector de mi blog. Te presento un nuevo sitio web que tiene por nombre gizbot, Este es un sitio web que ofrece información sobre las novedades más recientes del sector tecnológico. Encontrarás tópicos sobre Android, smartphones, tablet, computadoras, accesorios,guias de usuario y lo más interesante, revisión de diferentes dispositivos tecnológicos. La interfaz de este sitio web es bastante simple y sus publicaciones carecen de explicaciones técnicas complicadas, son resumidas y están estructuradas para todo público lo que ahorra tiempo de lectura sin omitir detalles esenciales sobre las característica sobre la descripción de los productos.

Aquí culmino hasta brevísima entrega. Espero que puedas revisar este sitio y compartas tu opinión en los comentarios. Gracias por tu visita, nos vemos en la próxima.

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

Hello reader of my blog. I present you a new website called gizbot, This is a website that offers information about the latest news in the technology sector. You will find topics about Android, smartphones, tablets, computers, accessories, user guides and most interestingly, review of different technological devices. The interface of this website is quite simple and its publications lack complicated technical explanations, they are summarized and structured for all audiences which saves reading time without omitting essential details about the features of the products description.

This is the end of this very short article. I hope you can review this site and share your opinion in the comments. Thanks for your visit, see you next 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 index in range(1,5):

client=httpx.Client()
gizbot=client.get(f'https://www.gizbot.com/news/?page-no={index}',headers=headers).text
gizbot_raw=HTMLParser(gizbot)

for hl in gizbot_raw.css('div.post-details > h3 > a'):

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

result.png


Text translated by DeepL



0 comments