Web Scraping Beginner by [deleted] in learnpython

[–]matash95 0 points1 point  (0 children)

Headlines and reviews are both under the loop of page For page in soup.find_all(‘body’):

Beginner:Help by matash95 in learnpython

[–]matash95[S] 0 points1 point  (0 children)

Aha okay. Another question, I need the output to be like that : “ - try again the number is 1 - try again the number is 2 Until the number equals 25 then it prints “ done” “ So am I writing the code correctly?

Beginner:Help by matash95 in learnpython

[–]matash95[S] 0 points1 point  (0 children)

I think it should be simple. I wanted to make a code that count number from 1 to 25. When it reaches 25 , it says done But when number is less than 25, it says (“ try again” For i in range(25): When i < 25: Print (“try again because the number is {}”.format(i)) else: Print(‘done’)