(Aug-28-2019, 12:42 PM)metulburr Wrote: (Aug-28-2019, 12:24 PM)zarize Wrote: and it doesn't work... it returns something about tab
https://python-forum.io/misc.php?action=help&hid=19
well noted :P
for section in soup.find_all(class_='c-pa-info'):
dlink = section.find('a', {'href':'c-pa-link link_AB'}).text.strip()
stype = section.find('a', {'class':'c-pa-link link_AB'}).text.strip()
sbathrooms = section.find('div', {'class':'c-pa-criterion'}).text.strip()
sprice = section.find('span', {'class':'c-pa-cprice'}).text.strip()
cc = section.find('span', {'class':'c-pa-sprice'}).text.strip()
sneighborhood = section.find('div', {'class':'c-pa-city'}).text.strip()
print(dlink)
this is my current state... as you can see i am trying to solve how to get direct link to an x offer.. any tip? :P
i am trying to print(dlink)
error:
Traceback (most recent call last):
File "seloger.py", line 44, in <module>
dlink = section.find('a', {'href':'c-pa-link link_AB'}).get_text().strip()
TypeError: 'NoneType' object is not callable
#EDIT
found answer :D
dlink = section.find('a').get('href')