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

avatar
(Edited)

Preview.pngImagen diseñada con canva || Image designed with canva

Hola hivers. Espero que la estén pasando bien. Hoy les traigo un nuevo script elaborado en Python para obtener enlaces y títulos del sitio web marketscreener.

Al parecer bitcoin sigue firme en el soporte de los 20 mil dólares americanos($) es decir, el mercado de criptomonedas se ha mantenido estable lo que me resulta muy positivo para mí.

Hace unos días noté que el precio del HIVE experimento un vertiginoso aumento hasta los 0,70 $ actualmente se encuentra en 0,58 $. Y la verdad no me lo esperaba, ya que suelo considerar que tanto bitcoin y a las altcoins están correlacionadas Es decir, si sube bitcoin también las altcoins suben. Pero el caso de HIVE ha sido diferente. Lo que me hace dudar mucho de esas noticias o publicaciones que realizan correlaciones entre diferentes criptoactivos. Así que bueno, seguiré observando lo que ocurra en este mercado tan volátil y que a veces nos presenta sorpresas como la del aumento del HIVE.

De acuerdo a esto, les traigo este script que precisamente se encargara de obtener los enlaces y títulos de un sitio web especializado en hacer estudios,investigaciones y monitoreo en tiempo real sobre los acontecimientos minuto a minuto de lo que ocurre en los mercados financieros y eso incluye el sector de las criptomonedas.

Es un sitio web con un diseño simple y también dispone de muchísima información, me ha dejado perplejo tal vez para algunos lectores tener mucha información sobre los mercados en un solo sitio web puede resultar perturbador. Pero para otras personas que suelen ser detallistas y muy técnicos con el tratamiento de la información esto no les resulta un impedimento.

En fin, si visitan este sitio web podrán notar que es muy completo tratando de siempre ofrecer la mayor cobertura de noticias posible. Todo ello posible a su equipo de expertos que cuenta con muchos años de experiencia estudiando los acontecimientos económicos.

Abajo les dejó el script con sus respectivos resultados a su disposición.

Gracias por visitar esta publicación. Hasta la próxima entrega.

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

Hello hivers. I hope you are having a good time. Today I bring you a new script made in Python to get links and titles from the marketscreener website.

It seems that bitcoin is still firmly in the support of 20 thousand US dollars ($), that is, the cryptocurrency market has remained stable, which is very positive for me.

A few days ago I noticed that the price of HIVE experienced a dizzying rise to $ 0.70 and is currently at $ 0.58. And the truth is that I did not expect it, since I usually consider that both bitcoin and altcoins are correlated, that is, if bitcoin goes up, altcoins also go down. But the case of HIVE has been different. Which makes me very doubtful of those news or publications that make correlations between different cryptoassets. So well, I will continue to watch what happens in this volatile market that sometimes presents us with surprises like the rise of HIVE.

Accordingly, I bring you this script that precisely will be responsible for obtaining the links and titles of a website specialized in making studies, research and monitoring in real time on the events minute by minute of what happens in the financial markets and that includes the cryptocurrency sector.

It is a website with a simple design and also has a lot of information, it has left me perplexed perhaps for some readers to have a lot of information about the markets in a single website can be disturbing. But for other people who tend to be very detailed and very technical with the treatment of information this is not an impediment.

Anyway, if you visit this website you will notice that it is very complete, always trying to offer as much news coverage as possible. All this is possible thanks to their team of experts who have many years of experience studying economic events.

Below is the script with its respective results at your disposal.

Thank you for visiting this publication. See you in the next issue.

This script was run with Python 3.9.13 on the Lubuntu 18.0.4 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 pages in range(1,5):

client=httpx.Client()
marketscreener=client.get(f'https://www.marketscreener.com/news/latest/?p5={pages}',headers=headers).text

marketscreener_raw=HTMLParser(marketscreener)

for gethl in marketscreener_raw.css('td.newsColCT.ptop3.pbottom3.pleft5.std_txt.top.ptop3.pbottom3 > a'):

    titles=gethl.text()
    links=gethl.attributes['href']
    
    print(f'titles:{titles} links: {links}')

Result.png


Text translated by DeepL



2 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

You may also include @stemsocial as a beneficiary of the rewards of this post to get a stronger support. 
 

avatar

Congratulations @pynomiems! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You received more than 1500 upvotes.
Your next target is to reach 1750 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Hive Power Up Day - July 1st 2022
NFT for peace - Thank you for your continuous support
Support the HiveBuzz project. Vote for our proposal!
0
0
0.000