Hola lector de mi blog. Espero que la estés pasando bien. En esta ocasión, traigo para ti un nuevo sitio web que trata sobre visión artificial y machine learning en que recibirás tutoriales, consejos y noticias sobre los diferentes usos que puedes encontrar útil en este campo de la computación. Podrás aprender algo de codificación con Python y C para que puedes animarte aprender y crear proyectos. El sitio se llama learnopencv.
Espero que está entrega te haya gustado. Recuerda, puedes dejar tu comentario y con gusto te atenderé. Hasta la próxima.
Este script fue ejecutado con Python 3.9.13 en el sistema operativo Lubuntu 18.04.6.
Hello reader of my blog. I hope you are having a good time. This time, I bring for you a new website that deals with computer vision and machine learning where you will receive tutorials, tips and news about the different uses that you can find useful in this field of computing. You will be able to learn some coding with Python and C so you can be encouraged to learn and create projects. The site is called learnopencv.
I hope you liked this installment. Remember, you can leave a comment and I will be glad to help you. See you next time.
This script was run with Python 3.9.13 on Lubuntu 18.04.6 operating system.
import httpx
from selectolax.parser import HTMLParserheaders={'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 index in range(1,5):
client=httpx.Client(headers=headers) learnopencv=client.get(f'https://learnopencv.com/page/{index}/').text learnopencv_html=HTMLParser(learnopencv) for get_hl in learnopencv_html.css('header > h2 > a'): h=get_hl.text(strip=True) l=get_hl.attributes['href'] print(f'headlines: {h} links: {l}')