On: http://arithmetic.zetamac.com/game?key=96823302, we need to take the problem out of the problem
tag in the <span>
class.
It is constantly updated, how can I retrieve the data out each time using BeautifulSoup/Python?
I know it will be like:
from bs4 import BeautifulSoup
soup = BeautifulSoup(requests.get("http://arithmetic.zetamac.com/game?key=96823302").content)
problem = soup.find("span",class_="problem") #Initial finding
a = True
while(a == True):
print problem
problem = soup.find("span",class_="problem")
//Then it will re-loop
But this only prints out: <span class="problem"></span>
not the inside like 2 + 2
or 2 x 2