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

Preview.png

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'}

client=httpx.Client()
libertythroughwealth=client.get(f'https://libertythroughwealth.com/',headers=headers,follow_redirects=True).text
libertythroughwealth_html=HTMLParser(libertythroughwealth)
for hl in libertythroughwealth_html.css('.magcat-titlte > a'):

print(f"Titles: {hl.text(strip=True)},Links: {hl.attrs['href']}")

result.png

result II.png

Text translated by DeepL

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Ecency