![]() ![]() On your first example - the site is loading its content by heavy javascript so I suggest using selenium in fetching the source. TypeError: can't use a string pattern on a bytes-like object ![]() Return _compile(pattern, flags).findall(string) Print (result, result) # Print ScoreĪnd I got this error: Traceback (most recent call last):įile "C:\Users\Bright\Desktop\live_score.py", line 12, in įile "C:\Python34\lib\re.py", line 206, in findall Xml_data = ('').read()įor i in re.findall(pattern, xml_data, re.DOTALL): # Downloading Live Score XML Code From Website and reading also I decided to write another one this is the code: # Import Modules Either IDLE can't start a subprocess or firewall software is blocking the connection. IDLE's subprocess didn't make connection. When I run this code a box pup's up saying: Sauce = ('').read()įor div in soup.find_all('div', class_='container'): I have tried two ways this are the codes: import bs4 as bs I am building it with python 3.4, windows 10 64bit os. I want to scrape for football scores (result) e.g getting all the scores of the day (England 2-2 Norway, France 2-1 Italy, etc). I have this project am working on using python 3.4.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |