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

in GEMS2 years ago

Preview.png

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

Hola querido lector. En esta ocasión compartiré contigo un nuevo script elaborado con Python para que obtengas los titulares y enlaces del sitio web nichepursuits, un sitio web concebido para comercio electrónico y marketing con la posibilidad de brindarte múltiples servicios en línea y cobertura informativa sobre noticias, guías, tutoriales y estrategias que puedes adoptar en tu empresa para mejor tu visibilidad y tener un mejor posicionamiento en la nube. Por supuesto, tendrás acceso informativo sobre herramientas analíticas en línea que puede ser muy útiles para ayudarte a gestionar el contenido de tus publicaciones relacionadas con prácticas de SEO y otras herramientas de marketing a fines para que tengas éxito con tu comercio en línea.

Es un sitio web muy interesante, con mucho contenido de excelente calidad, escrito por diferentes expertos y experimentados sobre el comercio electrónico. Así pues, con esta publicación acerco para ti la posibilidad de encontrar información que puede ser de ayuda para mejorar el posicionamiento de tu empresa en línea.

Gracias por visitar, abajo encontrarás el código de Python y por supuesto, si te ha gustado puedes dejar tu comentario y estaré por aquí para responderte. Hasta una nueva oportunidad.

Este script fue ejecutado con Python 3.9.13 en el sistema operativo Windows 10.

Hello dear reader. This time I will share with you a new script made with Python to get the headlines and links of the website nichepursuits, a website designed for e-commerce and marketing with the ability to provide multiple online services and information coverage on news, guides, tutorials and strategies that you can adopt in your company to improve your visibility and have a better positioning in the cloud. Of course, you will have informative access to online analytical tools that can be very useful to help you manage the content of your publications related to SEO practices and other marketing tools to help you succeed with your online business.

It is a very interesting website, with a lot of excellent quality content, written by different experts and experienced people about e-commerce. So, with this publication I bring to you the possibility of finding information that can be of help to improve the positioning of your online business.

Thanks for visiting, below you will find the Python code and of course, if you liked it you can leave your comment and I will be around to answer you. Until a new opportunity.

This script was run with Python 3.9.13 on Windows 10 operating system.

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,6):

client=httpx.Client()
nichepursuits=client.get(f'https://www.nichepursuits.com/blog/page/{idx}/',headers=headers).text
nichepursuits_html=HTMLParser(nichepursuits)

for get_hl in nichepursuits_html.css('article > div > h3 > a'):

    print(f"Titles: {get_hl.text()},Links: {get_hl.attrs['href']}")   

result I.JPG

result II.JPG


Text translated by DeepL

Sort:  

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

You received more than 2750 upvotes.
Your next target is to reach 3000 upvotes.

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 the last post from @hivebuzz:

HiveFest⁷ Meetings Contest
Support the HiveBuzz project. Vote for our proposal!