Hola lector de mi blog. En esta oportunidad te presento nuevo sitio web en el que puedes acceder para que recibas información sobre desarrollo de sitios web. Abarca temas sobre CMS, tendencias de diseño, seguridad, recursos para obtener fuentes, plantillas,sugerencias para análisis SEO y consejos para mejorar la codificación de sitios web. Todos estos temas y más se encuentra disponible en webdesignerdepot. Si eres diseñador, no te pierdas este genial sitio web donde puedes encontrar excelentes consejos y plantillas gratis para tus proyectos.
Para el caso del script de Python solo lo he creado para que solo extraiga los encabezados y dirección enlaces en la sección de noticias, me parece una buena muestra, ya que los editores emiten resúmenes semanales de las publicaciones más populares de la semana.
Aquí culmino esta corta entrega. Puedes dejar tu comentario y con gusto te responderé. Gracias por tu pequeña porción de tiempo. Hasta pronto.
Este script fue ejecutado con Python 3.9.13 en el sistema operativo Lubuntu 18.04.6.
Hello reader of my blog. In this opportunity I present you a new website where you can access to receive information about website development. It covers topics about CMS, design trends, security, resources to get fonts, templates, SEO analysis suggestions and tips to improve website coding. All these topics and more are available at webdesignerdepot. If you are a designer, don't miss this great website where you can find great tips and free templates for your projects.
Here I end this short installment. You can leave your comment and I'll be glad to answer you. Thanks for your little bit of time. See you soon.
In the case of the Python script I have only created it to extract the headers and links in the news section, I think it is a good sample, since the editors issue weekly summaries of the most popular publications of the week.
This script was run with Python 3.9.13 on Lubuntu 18.04.6 operating system.
import httpx
from selectolax.parser import HTMLParserheaders={'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,6):
client=httpx.Client() webdesignerdepot=client.get(f'https://www.webdesignerdepot.com/category/news/page/{index}/',headers=headers).text webdesignerdepot_raw=HTMLParser(webdesignerdepot) for hl in webdesignerdepot_raw.css('h2 > a'): print(f"Titles: {hl.text(strip=True)}, Links: {hl.attrs['href']}")