I am new to Python
Now i am try to scrape the odd information from a betting website
Here is my code:
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
my_url = 'http://ift.tt/2zBso4O'
uClient = uReq(my_url)
page_html = uClient.read()
uClient.close()
page_soup = soup(page_html, "html.parser")
page_soup.findAll("div",{"class":"oddsAll"})
But return none
After i try to get the prettify output
filename = "hkjchtml.txt"
f = open(filename, "w", encoding='utf-8')
f.write(soup.prettify())
I found that nothing about div or class here
what return is just function, var and logical code
how can i scrape the odd information from this website?
Aucun commentaire:
Enregistrer un commentaire