thank you for your help. is any way i can just get the "return" content under getData() function ? that is why I am trying to use regex.
– jerry9855Dec 06 '16 at 23:19
From what i know, bs isn't capable of that so you have other options like the one i wrote above.
– royDec 06 '16 at 23:29
and this might be useful as well
[link](http://stackoverflow.com/questions/25111752/extracting-text-using-beautifulsoup-in-python/25112034#25112034)
– royDec 06 '16 at 23:31
for some reason i still got the same error even I run you code. It was running correctly when you post the solution. do I need to do anything to re-run your code ?
– jerry9855Dec 06 '16 at 23:54
what version of python are you using?
did you make sure bs and requests are up to date? can you double check which version of them you are using?
also, instead of `print(script.text)`, do this : `print(soup.pretiffy())`, and post the results
– royDec 07 '16 at 00:05
Well, this error indicates that "soup" == None, Did you try upgrade beautifulsoup and requests packages? If no, please do so as this error might be related to a version compatibility..
– royDec 07 '16 at 03:34
The issue was caused by network issue. They blocked my connection. Thank you for the help.
– jerry9855Dec 07 '16 at 06:40