[ESP-ENG] Titulos y enlaces en codewithmike || Titles and links in codewithmike
sites·@pynomiems·
0.000 HBD[ESP-ENG] Titulos y enlaces en codewithmike || Titles and links in codewithmike
<center> https://i.ibb.co/fkQdbSd/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 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) codewithmike=client.get(f'https://www.codewithmike.com/page/{idx}/').text for hl in HTMLParser(codewithmike).css('h3.entry-title > a'): print(f'headlines: {hl.text(strip=True)} links: {hl.attributes["href"]}') </pre> </div> <center> https://i.ibb.co/qMMqkct/Result.png </center> https://i.ibb.co/mqkW5S8/Result-II.png <center>
👍 ethicalbrandhack, thranax, lennyblogs00, zangano, zammie, pastrane, paasz, pandaparker, lalupita, pastzam, ukulima, pessal, methodofmad, raphaelle, hivebuzz, cwow2, lizanomadsoul, manncpt, jnmarteau, schmidi, steemitboard, fengchao, arcange, shainemata, rohansuares, nautilus-up, life-timer, hive-108278,