Un saludo querido lector de mi blog. Te preparé otro script en Python con su respectivo sitio web. Que viene cargado de información sobre finanzas e inversiones. ¡Si! Un sitio web muy popular y con una comunidad de lectores muy activa, ya que tan solo acceder podrás apreciar la cantidad de comentarios que hay en las publicaciones.
El sitio en cuestión tiene por nombre financialsamurai, está en funcionamiento raíz de la crisis financiera del 2008, como un blog personal, pero ahora es una de las fuentes financieras más citadas del internet, porque dispone de material informativo que ayudo y aun ayuda muchas personas a buscar fuentes de ingresos que permitan afrontar sus finanzas personales y puede tener una mejor vida. Podrás encontrar mucho material, desde consejos hasta los mejores productos de inversión que pueden ayudarte a ti. Por supuesto, esto requiere análisis y dedicación para tomar una decisión correcta.
Es un sitio web que tiene mucho que ofrecer, se los digo porque no es la primera vez que la visito. Aquí aprendí mucho sobre finanzas, pero cada quien es libre de formar su propia opinión y responsable de las decisiones que toma de sus recursos financieros.
Gracias por llegar hasta aquí, espero que esta entrega haya sido de su agrado. Puedes dejar comentarios y estaré atento en responderte. Hasta la próxima oportunidad.
Este script fue ejecutado con Python 3.9.13 en el sistema operativo Windows 10.
Greetings dear reader of my blog. I prepared you another script in Python with its respective web site. It comes loaded with information on finance and investments. Yes! A very popular website and with a very active community of readers, as just accessing you will appreciate the amount of comments on the publications.
The site in question is called financialsamurai, is in operation following the financial crisis of 2008, as a personal blog, but is now one of the most cited financial sources on the Internet, because it has informative material that helped and still helps many people to find sources of income to cope with their personal finances and can have a better life. You can find a lot of material, from tips to the best investment products that can help you. Of course, this requires analysis and dedication to make the right decision.
It is a website that has a lot to offer, I tell you because it is not the first time I visit it. Here I learned a lot about finances, but everyone is free to form their own opinion and responsible for the decisions they make with their financial resources.
Thank you for coming this far, I hope you have enjoyed this article. You can leave comments and I will be attentive to answer you. Until next time.
This script was run with Python 3.9.13 on Windows 10 operating system.
import asyncio
import aiohttp
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'}
async def parsing_page():
async with aiohttp.ClientSession() as session: for idx in range(1,6): async with session.get(f'https://www.financialsamurai.com/all-posts/page/{idx}/',headers=headers) as page: financialsamurai = await page.text() financialsamurai_html_page = HTMLParser(financialsamurai) for hl in financialsamurai_html_page.css('header > h2 > a'): titles=hl.text(strip=True) links=hl.attributes['href'] print(f'headlines: {titles} links: {links}')asyncio.run(parsing_page())