42703/beautifulsoup-not-able-to-extract-multiple-tags-in-a-class
I am trying to extract 2 tags, but I am not able to.
I tried the following to get 1 tag:
for tag in soup.find_all('a'): print (tag.text)
But when I try this for 2 tags, it doesn't work.
for tag in soup.find_all('a','div'): print (tag.text)
You are missing the square braces. You have to pass an array. Try this:
for tag in soup.find_all(['a','div']): print (tag.text)
Hello, @Pooja, Even I got the same issue, ...READ MORE
You want to avoid interfering with this ...READ MORE
Hi all, As per the title, I am ...READ MORE
You are using python 2 in which ...READ MORE
Yes, you can use the headless mode. ...READ MORE
Hey. Refer to the following code: driver.get("link") html = ...READ MORE
Yes, you can do it by using ...READ MORE
I had a similar requirement, this is ...READ MORE
Hey. You have to use SpeechRecognition as module ...READ MORE
You can specify the class you want ...READ MORE
OR
Already have an account? Sign in.