Answer the question
In order to leave comments, you need to log in
How to parse a link to a Kufar seller?
There is a site kufar.by, from any product from there I try to parse the link to the seller with the following code:
import requests
from bs4 import BeautifulSoup
src = requests.get("https://www.kufar.by/item/137097961").text
soup = BeautifulSoup(src, "lxml")
item = soup.find("a", class_="kf-Fqrg-c7f38")
print(item)
Answer the question
In order to leave comments, you need to log in
It looks like this
curl -s https://www.kufar.by/item/137097961 | grep 'kf-Fqrg-c7f38' && echo 'Есть kf-Fqrg-c7f38' || echo 'Нету kf-Fqrg-c7f38'
Нету kf-Fqrg-c7f38
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question