Код: Выделить всё
[url=/puravankara-limited-100046]
[img]https://im.proptiger.com/3/100046/13/puravankara-4491843.jpeg?width=155&height=50[/img]
[/url]
[url=/puravankara-limited-100046]
Puravankara Limited
[/url]
99
Total Projects
36
Ongoing Projects
Код: Выделить всё
from bs4 import BeautifulSoup
import requests
main_url="https://www.proptiger.com/bangalore/all-builders?page=1"
main_url_html=BeautifulSoup(requests.get(main_url).text,"html.parser")
for bcard in main_url_html.find_all('div',class_='b-card'):
bcard_CompanyName=bcard.find('div',class_='builder-details-wrap')
bcard_CompanyName=bcard_CompanyName.a.text
bcard_OngoingProjs=bcard.find('div',class_='count-wrap')
bcard_OngoingProjs=bcard_OngoingProjs.div.div.text
Подробнее здесь: https://stackoverflow.com/questions/787 ... scrape-dat