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

avatar

Preview.png

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

Hola lector aquí traigo otro sitio para ti. Se llama offshore-technology, este no es más que otro sitio web que proporciona cobertura informativa a sus lectores sobre noticias, informes y análisis de las tendencias tecnológicas y organizativas que te permitan mejorar la gestión de empresas del sector energético. Tiene mucho que ofrecer, dispone de gráficos y datos estadísticos que mensura los acontecimientos diarios sobre la dinámica de los mercados y crecimientos de las empresas energéticas.

No quiero darte muchos detalles, pero personalmente he agregado este sitio web a mi lista de sitios preferidos para consultar en mis horas de descanso. Desde mi percepción, es muy bueno y dispone de contenido resumido.

Espero que puedas visitarlo y me dejes tu opinión, estaré atento en responderte. Gracias por tu tiempo. Adiós.

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

Hello reader here I bring another site for you. It's called offshore-technology, this is just another web site that provides informative coverage to its readers on news, reports and analysis of technological and organizational trends that will allow you to improve the management of companies in the energy sector. It has a lot to offer, with graphs and statistical data that measure daily events on market dynamics and growth of energy companies.

I don't want to give you too many details, but I have personally added this website to my list of favorite sites to consult in my off hours. From my perception, it is very good and has summarized content.

I hope you can visit it and leave me your opinion, I will be attentive to answer you. Thanks for your time. Good bye.

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 idx in range(1,6): 
        
        async with session.get(f'https://www.offshore-technology.com/news/page/{idx}/',headers=headers) as page:
            
            offshore_tech=await page.text() 
            offshore_tech_html_pages=HTMLParser(offshore_tech)
             
            for find_hl in offshore_tech_html_pages.css('h4 > 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



1 comments