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

in #sites3 years ago


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

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 idx in range(1,5):

client=httpx.Client(headers=headers)
wibidata=client.get(f'https://www.wibidata.com/page/{idx}/').text

wibidata_html=HTMLParser(wibidata)

for get_hl in wibidata_html.css('h3.entry-title.td-module-title > a'):
    
    h=get_hl.text()
    l=get_hl.attributes['href']
    
    print(f'headlines: {h} links: {l}')

Sort:  

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

You have been a buzzy bee and published a post every day of the week.

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 our last posts:

LEO Power Up Day - January 15, 2023
HiveBuzz supports meetups of the Hive Austrian Community in Graz
The Hive Gamification Proposal Renewal
Support the HiveBuzz project. Vote for our proposal!