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

avatar

Preview.png

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

Hola lector de mi blog. Continuo con mi pequeña labor.Te presento copyblogger una plataforma en línea que ofrece recursos informativos,servicios y herramientas relacionados con el marketing de contenido. El propósito principal de copyblogger es que su empresa en línea logre alcanzar sus objetivos comerciales mediante la mejora continua de sus publicaciones. Esto es posible si definen estrategias y prácticas que logren producir un contenido atractivo y asertivo para sus clientes. Para copyblogger este es un de los mayores retos que enfrentan actualmente las empresas en línea; vender un buen contenido que logre establecer conexión emocional con sus visitantes es clave para crear una clientela leal a sus servicios.

Espero que puedas visitar este sitio web y escribas tu opinión en los comentarios. Escribir tambien es un arte, requiere constancia y creatividad para que nuestras ideas sean inteligibles y que logren impactar en él alma de quien nos lee y dedica una pequeña porción de un bien escaso que todos tenemos al nacer; el tiempo.

Gracias por tu visita.Hasta la próxima publicación, mi querido lector.

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

Hello reader of my blog. I continue with my little work.I present to you copyblogger an online platform that offers informative resources,services and tools related to content marketing. The main purpose of copyblogger is for your online business to achieve your business goals by continuously improving your publications. This is possible if you define strategies and practices to produce engaging and assertive content for your customers. For copyblogger this is one of the biggest challenges currently facing online businesses; selling good content that manages to establish an emotional connection with its visitors is key to creating a loyal clientele to their services.

I hope you can visit this website and write your opinion in the comments. Writing is also an art, it requires perseverance and creativity so that our ideas are intelligible and manage to impact on the soul of those who read us and dedicate a small portion of a scarce commodity that we all have at birth; time.

Thank you for your visit, until the next publication, my dear reader.

This script was run with Python 3.9.13 on Lubuntu 18.04.6 operating system.

import asyncio
import aiohttp
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'}

async def parsing_page():

async with aiohttp.ClientSession() as session:

    for index in range(1,6): 
        
        async with session.get(f'https://copyblogger.com/blog/page/{index}/',headers=headers) as page:
            
            copyblogger=await page.text() 
            copyblogger_raw_html=HTMLParser(copyblogger)
             
            for find_hl in copyblogger_raw_html.css('header > h2 > a'):

                headlines=find_hl.text(strip=True)
                links=find_hl.attributes['href']

                print(f'headlines: {headlines} links: {links}')

asyncio.run(parsing_page())

result.png


Text translated by DeepL



0 comments