create account

[ESP-ENG] Titulos y enlaces en scienceblog || Titles and links in scienceblog by pynomiems

View this thread on: hive.blogpeakd.comecency.com
· @pynomiems ·
$5.50
[ESP-ENG] Titulos y enlaces en scienceblog || Titles and links in scienceblog
<center>

![Preview (2).png](https://files.peakd.com/file/peakd-hive/pynomiems/AL34J91KE4mLyaCzsjhppdogyiadh2VtnCxPe3cFPEP1ujKej6jvxFFqpAuuYda.png)<center>Imagen diseñada con <a href="https://www.canva.com/">canva</a> || Image designed with <a href="https://www.canva.com/">canva</a></sub></center>

</center>

<div class="text-justify">

Hola queridos hivers. En esta oportunidad te traigo un sitio web sobre ciencia. Si, un portal de noticias en línea sobre información científica que podrás visitar para que te mantengas informado sobre una de los saberes más importantes de la vida humana: el conocimiento científico.

El portal en cuestión se llama [scienceblog](https://scienceblog.com), es de acceso abierto y el tratamiento del contenido es bastante resumido, pero según mi observación, requiere que el lector tenga conocimientos previos sobre cálculos o disciplinas científicas que le permita facilitar la lectura sobre los temas.

Por ejemplo, este [artículo](https://scienceblog.com/532965/modern-pesticides-damage-the-brain-of-bees-so-they-cant-move-in-a-straight-line/) me parece de valiosa lectura y trata sobre como el uso de pesticidas causa daño al cerebro de las abejas y sobre los daños medioambientales negativos que pueden surgir debido a la desaparición de los antófilos; pequeñas formas de vidas responsables de la reproducción de la vida de muchas especies de plantas que nos suministra semillas o frutos que podemos usar para ejercer nuestras funciones nutritivas.

Bueno, aquí me despido de esta breve entrega. Espero que le haya gustado. Abajo encontrará el código de un script elaborado con Python para que pueda usarlo en este sitio web. Gracias por su tiempo.

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

<blockquote>

Hello dear hivers. This time I bring you a website about science. Yes, an online news portal about scientific information that you can visit to keep you informed about one of the most important knowledge in human life: scientific knowledge.

The portal in question is called [scienceblog](https://scienceblog.com), it is open access and the treatment of the content is quite summarized, but according to my observation, it requires the reader to have previous knowledge about scientific calculations or disciplines to facilitate the reading of the topics.

For example, I find this [article](https://scienceblog.com/532965/modern-pesticides-damage-the-brain-of-bees-so-they-cant-move-in-a-straight-line/) a valuable read and it deals with how the use of pesticides causes damage to the brain of bees and the negative environmental damage that may arise due to the disappearance of anthophiles; small life forms responsible for the reproduction of the life of many plant species that supply us with seeds or fruits that we can use to exercise our nutritional functions.

Well, here I say goodbye to this brief installment. I hope you enjoyed it. Below you will find the code of a script made with Python so you can use it in this web site. Thanks for your time.
 
**This script was run with Python 3.9.13 on the Lubuntu 18.0.4 operating system.**

</blockquote>

<div>

<div class="text-justify">

<pre>

import asyncio
import aiohttp
from selectolax.parser import HTMLParser

headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}

async def get_page_hl():
    
    async with aiohttp.ClientSession() as session:

        for idx in range(1,6): 
            
            async with session.get(f'https://scienceblog.com/page/{idx}/',headers=headers) as page:
                
                scienceblog = await page.text() 
                scienceblog_raw_html = HTMLParser(scienceblog)
                 
                for get_hl in scienceblog_raw_html.css('header > h2 > a'):

                    headlines=get_hl.text(strip=True)
                    links=get_hl.attributes['href']
    
                    print(f'headlines: {headlines} links: {links}')

asyncio.run(get_page_hl())

</pre>

</div>

<center>

![result.png](https://files.peakd.com/file/peakd-hive/pynomiems/23swfuNBKQnSdWw914txVGoH9RU7Pgi7uwagctJraAbMoGcLn4xUjHALPLM1B7va17PBx.png)

</center>

---

<center>

## Text translated by <a href="https://www.deepl.com/es/translator">DeepL</a>

</center>
👍  , , , , , , , , , , , , , , , ,
properties (23)
authorpynomiems
permlinkesp-eng-titulos-y-enlaces-en-scienceblog-oror-titles-and-links-in-scienceblog
categoryhive-148441
json_metadata{"app":"peakd/2022.07.1","format":"markdown","tags":["development","news","science","environment","blog"],"users":[],"image":["https://files.peakd.com/file/peakd-hive/pynomiems/AL34J91KE4mLyaCzsjhppdogyiadh2VtnCxPe3cFPEP1ujKej6jvxFFqpAuuYda.png","https://files.peakd.com/file/peakd-hive/pynomiems/23swfuNBKQnSdWw914txVGoH9RU7Pgi7uwagctJraAbMoGcLn4xUjHALPLM1B7va17PBx.png"]}
created2022-08-18 03:11:36
last_update2022-08-18 03:11:36
depth0
children0
last_payout2022-08-25 03:11:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value5.503 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,359
author_reputation273,261,352,410,025
root_title"[ESP-ENG] Titulos y enlaces en scienceblog || Titles and links in scienceblog"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id115,816,664
net_rshares16,006,662,492,980
author_curate_reward""
vote details (17)