create account

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

View this thread on: hive.blogpeakd.comecency.com
· @pynomiems ·
$5.73
[ESP-ENG] Titulos y enlaces en logicalincrements || Titles and links in logicalincrements
<center>
https://i.ibb.co/41SmYcv/Preview.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">

<pre>

import asyncio
import aiohttp
from selectolax.parser import HTMLParser

headers={'user-agent': 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_5 rv:3.0; sl-SI) AppleWebKit/534.49.1 (KHTML, like Gecko) Version/4.0.1 Safari/534.49.1'}

async def parsing_page():
    async with aiohttp.ClientSession() as session:
        for idx in range(2,6): 
            async with session.get(f'https://blog.logicalincrements.com/page/{idx}/',headers=headers) as page:
                logicalincrements=await page.text()
                logicalincrements_html=HTMLParser(logicalincrements)     
                for find_hl in logicalincrements_html.css('h2.title > a'):
                    h=find_hl.text(strip=True)
                    l=find_hl.attributes['href']
                    print(f'headlines: {h} links: {l}')

asyncio.run(parsing_page())


</pre>

</div>
    
<center>
    
https://i.ibb.co/P1M8fq8/Result.png

</center>

https://i.ibb.co/5RnYXyq/Result-II.png

<center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authorpynomiems
permlinkesp-eng-titulos-y-enlaces-en-logicalincrements-titles-and-links-in-logicalincrements
categorysites
json_metadata"{"app": "peakd/2023.2.2", "tags": ["sites", "blogs", "collection"]}"
created2023-02-16 03:39:48
last_update2023-02-16 03:39:48
depth0
children0
last_payout2023-02-23 03:39:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value5.731 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,212
author_reputation273,261,352,410,025
root_title"[ESP-ENG] Titulos y enlaces en logicalincrements || Titles and links in logicalincrements"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id120,822,297
net_rshares18,511,070,223,792
author_curate_reward""
vote details (31)