A
A
Alen_San2021-08-25 20:30:47
Python
Alen_San, 2021-08-25 20:30:47

Throws AttributeError: NOResultset object has no attribute 'get'. What's wrong?

a = []
for i in url:
url_1 = i.find('a', class_='_1wibv7j').get('href')
a.append(url_1)

I have a list with code snippets: url = [ . ..] All elements have the same class="_1wib...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question